Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] How to turn off Transfer-Encoding: Chunked when sending with jetty client


Is there a way to turn off chunking when sending with jetty client.
HttpConnection.normalizeRequest contains a section where chunked transfer
encoding is enforced when content provider length is not specified. 

If I skip the normalization then the
HttpGenerator.generateRequest->generateHeaders insist on falling back to
chunked encoding because Connection: close doesn't avoid this fall back
procedure because response(?) is missing. I just set end-of-content despite
missing response (it's request after all that I'm generating) then the
connection is (eventually) marked as non-persistent and chunking is avoided.

View this message in context:
Sent from the Jetty User mailing list archive at

Back to the top