{"comment":{"created_at":"2011-10-26T10:38:15Z","body":"OK, new version on hackage. Let me know if something goes wrong ;)","updated_at":"2011-10-26T10:38:15Z","url":"https://api.github.com/repos/snoyberg/http-enumerator/issues/comments/2528902","id":2528902,"user":{"avatar_url":"https://secure.gravatar.com/avatar/71596bb1ca3ba3aa4400c3f407baec9f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"71596bb1ca3ba3aa4400c3f407baec9f","url":"https://api.github.com/users/snoyberg","id":49415,"login":"snoyberg"}},"action":"created","issue":{"number":38,"created_at":"2011-10-26T09:58:57Z","pull_request":{"diff_url":"https://github.com/snoyberg/http-enumerator/pull/38.diff","patch_url":"https://github.com/snoyberg/http-enumerator/pull/38.patch","html_url":"https://github.com/snoyberg/http-enumerator/pull/38"},"body":"The problem I described in issue #37 was that for the case where there the transfer encoding is not chunked it would still end up using a chunked enumeratee due to the Nothing in:\r\n\r\n             case mcl >>= readMay . S8.unpack of\r\n                   Just len -> (takeLBS len =$)\r\n                   Nothing -> (chunkedTerminator =$)\r\n\r\nWith this patch, we only use chunkedEnumeratee and chunkedTerminator when the transfer encoding is in fact chunked. Otherwise we either use the provided content-length or id (because if is no content-length provided the server should close the connection at the end of the transfer).\r\n","comments":3,"title":"Fix rawBody/transfer-encoding-chunked logic.","updated_at":"2011-10-26T10:38:15Z","url":"https://api.github.com/repos/snoyberg/http-enumerator/issues/38","id":2055086,"assignee":null,"milestone":null,"closed_at":"2011-10-26T10:22:27Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/c6144f7f9344e81cc35ed21b2d29a87c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c6144f7f9344e81cc35ed21b2d29a87c","url":"https://api.github.com/users/erikd","id":307277,"login":"erikd"},"html_url":"https://github.com/snoyberg/http-enumerator/issues/38","labels":[],"state":"closed"},"legacy":{"issue_id":2055086,"comment_id":2528902}}