summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-12 09:25:56 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-12 09:25:56 +0000
commit22d6ff16d35c34f8b8fac04e2455a80dd89840b4 (patch)
tree39cb3670513b985e87080581925b4019501e5169 /lib/net
parenta1295b0f79d65d04a07962acf8b2af1a930a6035 (diff)
* lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]
* test/net/http/test_http.rb: test Net::HTTP.post_form. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 060753e62e..62b951db1a 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1503,7 +1503,7 @@ module Net #:nodoc:
return [] unless vals
vals.map {|v| v.split(',') }.flatten\
.reject {|str| str.strip.empty? }\
- .map {|tok| tok.downcase }
+ .map {|tok| tok.strip.downcase }
end
private :tokens