summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/cgi.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 2f56092cc48..fcf8c006e58 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -424,7 +424,7 @@ status:
options["type"].concat( options.delete("charset") )
end
- options.delete("nph") if MOD_RUBY
+ options.delete("nph") if defined?(MOD_RUBY)
if options.delete("nph") or /IIS/n.match(env_table['SERVER_SOFTWARE'])
buf.concat( (env_table["SERVER_PROTOCOL"] or "HTTP/1.0") + " " )
buf.concat( (HTTP_STATUS[options["status"]] or