From 0bf30ef7ca43d621ce3cc0ed262cdc3637425b44 Mon Sep 17 00:00:00 2001 From: aamine Date: Sat, 12 May 2007 09:25:56 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@12274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/net') diff --git a/lib/net/http.rb b/lib/net/http.rb index 060753e62..62b951db1 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 -- cgit