diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/webrick/httputils.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Jan 27 02:26:31 2004 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * lib/webrick/httputils.rb (WEBrick:HTTPUtils::parse_header): + refine regex for header-name. + Mon Jan 26 22:53:04 2004 Dave Thomas <dave@pragprog.com> * io.c: Remove documentation references to $defout. 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) |