diff options
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 57a2b2eea5..fb8a3cc08b 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -2162,7 +2162,7 @@ module Net #:nodoc: while true line = sock.readuntil("\n", true).sub(/\s+\z/, '') break if line.empty? - if line[0] == ?\ or line[0] == ?\t and value + if line[0] == ?\s or line[0] == ?\t and value value << ' ' unless value.empty? value << line.strip else |