summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/net/http.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0bce7f6327..19a94ed013 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Oct 31 17:20:58 2009 NAKAMURA, Hiroshi <[email protected]>
+
+ * lib/net/http.rb (Net::HTTPResponse#each_response_header):
+ cosmetic: '?\ ' -> '?\s'
+
Fri Oct 30 22:02:15 2009 NAKAMURA, Hiroshi <[email protected]>
* lib/net/http.rb (Net::HTTPResponse#each_response_header):
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 5640956d31..10ec95018a 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -2038,7 +2038,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