summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-31 08:18:32 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-31 08:18:32 +0000
commitb18838379ee2a5078e03fda26fe4e4e69066e414 (patch)
tree80b0a0c6a600356194aeaa1859d9ef5109948186
parente422c8cd512ee7a97884183a2509d2dd0c0c26d9 (diff)
downloadruby-b18838379ee2a5078e03fda26fe4e4e69066e414.tar.gz
ruby-b18838379ee2a5078e03fda26fe4e4e69066e414.tar.xz
ruby-b18838379ee2a5078e03fda26fe4e4e69066e414.zip
* lib/net/http.rb (Net::HTTPResponse#each_response_header):
cosmetic: '?\ ' -> '?\s' git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 f0100d4ce..07156cbf0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Oct 31 17:19:28 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/net/http.rb (Net::HTTPResponse#each_response_header):
+ cosmetic: '?\ ' -> '?\s'
+
Fri Oct 30 22:09:47 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* lib/net/http.rb (Net::HTTPResponse#each_response_header):
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 57a2b2eea..fb8a3cc08 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