From: Nobuyoshi Nakada Date: 2009-04-13T20:19:32+09:00 Subject: Re: Potential bug in Net::HTTP, and tentative patch Hi, At Mon, 13 Apr 2009 12:40:32 +0900, Yves-Eric Martin wrote in [ruby-talk:333704]: > In http.rb, line 2236 the "read_chunked" function calls > @socket.readline. This "readline" function, in protocol.rb line 126, > calls readuntil("\n"). This works fine if the data chunk is > "\n-terminated", but throws an EOFError if it is not. Not "\n-terminated". According to RFC2616 and RFC2068, chunks consist from chunk-size and chunk-body, and the chunked-body is terminated by "0" size chunk. That is, the response doesn't seem to follow the RFCs. -- Nobu Nakada