Commit graph

2 commits

Author SHA1 Message Date
Jeremy Barlow
cb5de4555d (PDB-2640) Close gzip-wrapped body input stream on request completion
In the previous commit, if gzip compression was applied to a request
input stream, the stream was not automatically closed when the request
was complete.  The Apache HTTP async library, however, closes an input
stream in cases where gzip compression is not being added.  In this
commit, the original request input stream is closed immediately after
attempts to copy the data from it to the downstream gzipped input stream
have been completed, for compatibility with the pre-existing Apache HTTP
async library behavior.
2017-02-08 12:29:42 -08:00
Jeremy Barlow
689db7cb87 (PDB-2640) Add option for gzip compressing a request's body
This commit adds a new Clojure HTTP request option,
`:compress-request-body`, and corresponding Java option which can be used
to have gzip compression applied to the request's body before it is sent
along to the server.
2017-02-01 14:36:07 -08:00