tarcieri/http — pull request #28 by OriPekelman (2013-07-15 21:46:45+00:00)
Title: unsure but this could solve #22

I am sorry I don't totally understand the initial code here but the correction both does not seem to break any tests and for the failing example "https://btc-e.com/api/2/btc_usd/depth" gives the correct result.

This is some hard to read code with the double double pipes I am not sure I understand all the conditions here.

Anyway in this specific example there was no Content-Length header so @body_remaining is nil while Transfer-Encoding: chunked

But I really can't be sure I am not introducing some breakage here. I just don't really know what tests I can add.