diff --git a/ChangeLog b/ChangeLog index e86c494236..13ef040d10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 27 02:26:31 2004 GOTOU Yuuzou + + * lib/webrick/httputils.rb (WEBrick:HTTPUtils::parse_header): + refine regex for header-name. + Mon Jan 26 22:53:04 2004 Dave Thomas * 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)