diff options
| author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-31 08:19:47 +0000 |
|---|---|---|
| committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-31 08:19:47 +0000 |
| commit | 5d19cfe23f1e05da7cddeba8eef7cb00da668d13 (patch) | |
| tree | 899d37af26992f5c0445dc48ee59113c2398ebb4 | |
| parent | bf4449333ca3384909fa5d710c147ba175b20d06 (diff) | |
* lib/net/http.rb (Net::HTTPResponse#each_response_header):
cosmetic: '?\ ' -> '?\s'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/net/http.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Oct 31 17:20:58 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org> + + * lib/net/http.rb (Net::HTTPResponse#each_response_header): + cosmetic: '?\ ' -> '?\s' + Fri Oct 30 22:02:15 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 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 |
