mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* 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/trunk@12048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
62d54a282e
commit
9d5c0ea4a3
3 changed files with 11 additions and 4 deletions
|
@ -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 +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue