ruby-changes:13784
From: nahi <ko1@a...>
Date: Sat, 31 Oct 2009 17:18:48 +0900 (JST)
Subject: [ruby-changes:13784] Ruby:r25581 (trunk): * lib/net/http.rb (Net::HTTPResponse#each_response_header):
nahi 2009-10-31 17:18:32 +0900 (Sat, 31 Oct 2009) New Revision: 25581 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25581 Log: * lib/net/http.rb (Net::HTTPResponse#each_response_header): cosmetic: '?\ ' -> '?\s' Modified files: trunk/ChangeLog trunk/lib/net/http.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 25580) +++ ChangeLog (revision 25581) @@ -1,3 +1,8 @@ +Sat Oct 31 17:19:28 2009 NAKAMURA, Hiroshi <nahi@r...> + + * lib/net/http.rb (Net::HTTPResponse#each_response_header): + cosmetic: '?\ ' -> '?\s' + Fri Oct 30 22:09:47 2009 NAKAMURA, Hiroshi <nahi@r...> * lib/net/http.rb (Net::HTTPResponse#each_response_header): Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 25580) +++ lib/net/http.rb (revision 25581) @@ -2162,7 +2162,7 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/