joewalnes/webbit — Issue #54: POST bodies truncated at 65K
Author: iconara
Created: 2011-11-25 14:09:10+00:00
State: open

I'm POSTing data to a Webbit server and sometimes the bodies are big. When this happens the data received by Webbit has been truncated at 65536 bytes.

I've sniffed the traffic between the client and server, and this is the request sent:

POST /api/history HTTP/1.1
Host: localhost:1337
Content-Type: application/json
Connection: keep-alive
Accept: */*
User-Agent: NING/1.0
Content-Length: 695965

(big chunk of JSON)

on the server side I then print out the value of the `Content-Length` header and the size of `request.body()` (and `request.bodyAsBytes()`) and both tell me 65536. Is this a bug, or something I can configure my way around?