diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-26 17:31:53 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-26 17:31:53 +0000 |
commit | d82950f40061791e2be4d08c96aa3dc77ded9a4d (patch) | |
tree | 0bb47919034df87f355adec100b8afe93c32b2fb /lib/webrick/httputils.rb | |
parent | 9b077b3490fe1d9db5eb7bff6e5ee2feb9dd511a (diff) |
* lib/webrick/httputils.rb (WEBrick:HTTPUtils::parse_header):
refine regex for header-name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httputils.rb')
-rw-r--r-- | lib/webrick/httputils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httputils.rb b/lib/webrick/httputils.rb index 78780c4976..16d3c4d56b 100644 --- a/lib/webrick/httputils.rb +++ b/lib/webrick/httputils.rb @@ -129,7 +129,7 @@ module WEBrick field = nil raw.each{|line| case line - when /^([A-Za-z0-9_\-]+):\s*(.*?)\s*\z/om + when /^([A-Za-z0-9!\#$%&'*+\-.^_`|~]+):\s*(.*?)\s*\z/om field, value = $1, $2 field.downcase! header[field] = [] unless header.has_key?(field) |