[前][次][番号順一覧][スレッド一覧]

ruby-changes:13785

From: nahi <ko1@a...>
Date: Sat, 31 Oct 2009 17:19:58 +0900 (JST)
Subject: [ruby-changes:13785] Ruby:r25582 (ruby_1_8): * lib/net/http.rb (Net::HTTPResponse#each_response_header):

nahi	2009-10-31 17:19:47 +0900 (Sat, 31 Oct 2009)

  New Revision: 25582

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25582

  Log:
    * lib/net/http.rb (Net::HTTPResponse#each_response_header):
              cosmetic: '?\ ' -> '?\s'

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/lib/net/http.rb

Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 25581)
+++ ruby_1_8/ChangeLog	(revision 25582)
@@ -1,3 +1,8 @@
+Sat Oct 31 17:20:58 2009  NAKAMURA, Hiroshi  <nahi@r...>
+
+	* lib/net/http.rb (Net::HTTPResponse#each_response_header):
+	  cosmetic: '?\ ' -> '?\s'
+
 Fri Oct 30 22:02:15 2009  NAKAMURA, Hiroshi  <nahi@r...>
 
 	* lib/net/http.rb (Net::HTTPResponse#each_response_header):
Index: ruby_1_8/lib/net/http.rb
===================================================================
--- ruby_1_8/lib/net/http.rb	(revision 25581)
+++ ruby_1_8/lib/net/http.rb	(revision 25582)
@@ -2038,7 +2038,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/

[前][次][番号順一覧][スレッド一覧]