diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-19 14:31:24 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-19 14:31:24 +0000 |
commit | a4874e20ae678606715fb40de8305e4368bd453e (patch) | |
tree | c94a3a3dbea16dbb611d4edb99228ddd6e3efbb5 /lib/webrick/httprequest.rb | |
parent | c1e9ce9ca6d888cc18d945c916db4f4acd685d6b (diff) | |
download | ruby-a4874e20ae678606715fb40de8305e4368bd453e.tar.gz |
* lib/webrick/httprequest.rb (meta_vers): should not set
HTTP_CONTENT_TYPE and HTTP_CONTENT_LENGTH.
* lib/webrick/https.rb (HTTPRequest#parse): should check presence
of cert() method to detect SSLSocket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httprequest.rb')
-rw-r--r-- | lib/webrick/httprequest.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/webrick/httprequest.rb b/lib/webrick/httprequest.rb index a25c9933c5..455e94c08c 100644 --- a/lib/webrick/httprequest.rb +++ b/lib/webrick/httprequest.rb @@ -190,6 +190,8 @@ module WEBrick meta["SERVER_SOFTWARE"] = @config[:ServerSoftware].dup self.each{|key, val| + next if /content-type/ =~ key + next if /content-length/ =~ key name = "HTTP_" + key name.gsub!(/-/o, "_") name.upcase! |