diff options
Diffstat (limited to 'lib')
-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) |