diff options
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 402169c51..643d93fcc 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -486,12 +486,12 @@ All "key" is case-insensitive. line = @socket.readline break if line.empty? - m = /\A([^:]+):\s*(.*)/p.match( line ) + m = /\A([^:]+):\s*/.match( line ) unless m then raise HTTPBadResponse, 'wrong header line format' end nm = m[1] - line = m[2] + line = m.post_match if resp.key? nm then resp[nm] << ', ' << line else |