aesiniath / http-streams

Haskell HTTP client library for use with io-streams
https://hackage.haskell.org/package/http-streams
BSD 3-Clause "New" or "Revised" License
50 stars 48 forks source link

Need to send content chunked if length unknown #5

Closed istathar closed 11 years ago

istathar commented 11 years ago

Fairly serious weakness -- at the moment we rely on the user to set Content-Length: if PUTing or POSTing because we haven't implemented chunked transfer-encoding for sending.

The convenience APIs run the OutputStream to calculate the length and set it appropriately, so they are correct at least.

The library should probably just send chunked unless a length is explicitly provided, though working out a sensible public API taking this into account might take a little doing.

AfC

istathar commented 11 years ago

Fixed by ca7dd748de7049b0d22c79207f24600c4695e103.

AfC