summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/cgi.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index c86ac32306..84d545f464 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -505,7 +505,9 @@ status:
when /^content-encoding$/ni
Apache::request.content_encoding = value
when /^location$/ni
- Apache::request.status = 302
+ if Apache::request.status == 200
+ Apache::request.status = 302
+ end
Apache::request.headers_out[name] = value
else
Apache::request.headers_out[name] = value