diff --git a/lib/net/http.rb b/lib/net/http.rb index 3866f115b6..6a33fd4918 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1297,7 +1297,7 @@ module Net HTTPUnknownResponse end - def each_response_header( sock, res ) + def each_response_header( sock ) while true do line = sock.readuntil( "\n", true ) # ignore EOF line.sub!( /\s+\z/, '' ) # don't use chop!