summaryrefslogtreecommitdiffstats
path: root/lib/webrick/httprequest.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-20 13:01:33 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-20 13:01:33 +0000
commitec128fb19dd7aec28c7b71c7c86a6fca9adead32 (patch)
tree0a9ea40ec26f9805d43a5e312718c4162916d0b5 /lib/webrick/httprequest.rb
parenta09f0fe896df6fb5519e45edfaa15fca8bfd600e (diff)
downloadruby-ec128fb19dd7aec28c7b71c7c86a6fca9adead32.tar.gz
ruby-ec128fb19dd7aec28c7b71c7c86a6fca9adead32.tar.xz
ruby-ec128fb19dd7aec28c7b71c7c86a6fca9adead32.zip
* lib/webrick/httprequest.rb (HTTPRequest#meta_vars): refine regexp.
* lib/webrick/cgi.rb (CGI#start): NPH scripts return status line instead of Status: header field. * lib/webrick/cgi.rb (CGI::Socket): refine some coditions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httprequest.rb')
-rw-r--r--lib/webrick/httprequest.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/webrick/httprequest.rb b/lib/webrick/httprequest.rb
index 455e94c08..8943a037f 100644
--- a/lib/webrick/httprequest.rb
+++ b/lib/webrick/httprequest.rb
@@ -190,8 +190,8 @@ module WEBrick
meta["SERVER_SOFTWARE"] = @config[:ServerSoftware].dup
self.each{|key, val|
- next if /content-type/ =~ key
- next if /content-length/ =~ key
+ next if /^content-type$/i =~ key
+ next if /^content-length$/i =~ key
name = "HTTP_" + key
name.gsub!(/-/o, "_")
name.upcase!