diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-12 17:48:10 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-12 17:48:10 +0000 |
| commit | 262c3c948a1f2aaf9c1610f13ccfc4d4fc93025a (patch) | |
| tree | 98ef5bf213b5b0933538d9796acc5f646c2f1e43 /lib | |
| parent | cbbf646b7027ed68b73cf72a3cfef761e0ad773f (diff) | |
| download | ruby-262c3c948a1f2aaf9c1610f13ccfc4d4fc93025a.tar.gz ruby-262c3c948a1f2aaf9c1610f13ccfc4d4fc93025a.tar.xz ruby-262c3c948a1f2aaf9c1610f13ccfc4d4fc93025a.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@12048 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 92ec1b6d5..99dd0aae1 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -566,7 +566,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 + |
