diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-12 17:54:39 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-12 17:54:39 +0000 |
commit | bceea4477f69824f95494a9304772476c912ffc6 (patch) | |
tree | 2dd8913b10ef195a554c0c260dd8eaae82ceed7d /lib | |
parent | 7740080cdb3cdfe34b682e11162a9c43a39d506c (diff) |
* lib/cgi.rb (CGI::header): IIS >= 5.0 does not need the nph
assumption any more; submitted by MIYASAKA Masaru <alkaid AT
coral.ocn.ne.jp> in [ruby-dev:30537].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cgi.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index a7cedd13aa..0c27f1f33a 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -556,7 +556,8 @@ class CGI end options.delete("nph") if defined?(MOD_RUBY) - if options.delete("nph") or /IIS/n.match(env_table['SERVER_SOFTWARE']) + if options.delete("nph") or + (/IIS\/(\d+)/n.match(env_table['SERVER_SOFTWARE']) and $1.to_i < 5) buf += (env_table["SERVER_PROTOCOL"] or "HTTP/1.0") + " " + (HTTP_STATUS[options["status"]] or options["status"] or "200 OK") + EOL + |