зеркало из https://github.com/github/ruby.git
* 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:
Родитель
9b077b3490
Коммит
d82950f400
|
@ -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>
|
Mon Jan 26 22:53:04 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
* io.c: Remove documentation references to $defout.
|
* io.c: Remove documentation references to $defout.
|
||||||
|
|
|
@ -129,7 +129,7 @@ module WEBrick
|
||||||
field = nil
|
field = nil
|
||||||
raw.each{|line|
|
raw.each{|line|
|
||||||
case 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, value = $1, $2
|
||||||
field.downcase!
|
field.downcase!
|
||||||
header[field] = [] unless header.has_key?(field)
|
header[field] = [] unless header.has_key?(field)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче