diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-11-02 00:21:28 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-11-02 00:21:28 +0000 |
| commit | af34959f5414a4abdd4a85b911b2041bc09a7c8e (patch) | |
| tree | 9bfd2df5a5e574ddae6685e70d720dcae09fcbb6 /lib/webrick | |
| parent | 3861705ca17dceaa2f58f96ce3551e89dca2d19e (diff) | |
| download | ruby-af34959f5414a4abdd4a85b911b2041bc09a7c8e.tar.gz ruby-af34959f5414a4abdd4a85b911b2041bc09a7c8e.tar.xz ruby-af34959f5414a4abdd4a85b911b2041bc09a7c8e.zip | |
* lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Symbol should
come earlier than String.
* lib/soap/mapping/rubytypeFactory.rb (RubytypeFactory::obj2soap):
ditto.
* lib/set.rb (TC_Set::test_s_new): strings are no longer
Enumerable
* lib/soap/property.rb (Property::load): ditto.
* lib/webrick/httputils.rb (WEBrick::HTTPUtils::parse_header): ditto.
* lib/soap/mimemessage.rb (MIMEMessage::Headers::parse): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
| -rw-r--r-- | lib/webrick/httprequest.rb | 2 | ||||
| -rw-r--r-- | lib/webrick/httputils.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/webrick/httprequest.rb b/lib/webrick/httprequest.rb index 80188b8cf..2dca0655d 100644 --- a/lib/webrick/httprequest.rb +++ b/lib/webrick/httprequest.rb @@ -240,7 +240,7 @@ module WEBrick end end begin - @header = HTTPUtils::parse_header(@raw_header) + @header = HTTPUtils::parse_header(@raw_header.join) rescue => ex raise HTTPStatus::BadRequest, ex.message end diff --git a/lib/webrick/httputils.rb b/lib/webrick/httputils.rb index c93146997..38a42b98f 100644 --- a/lib/webrick/httputils.rb +++ b/lib/webrick/httputils.rb @@ -127,7 +127,7 @@ module WEBrick def parse_header(raw) header = Hash.new([].freeze) field = nil - raw.each{|line| + raw.lines.each{|line| case line when /^([A-Za-z0-9!\#$%&'*+\-.^_`|~]+):\s*(.*?)\s*\z/om field, value = $1, $2 |
