1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
gotoyuzo 2004-01-26 17:31:53 +00:00
parent 9b077b3490
commit d82950f400
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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)