diff options
Diffstat (limited to 'lib/unicorn/app/exec_cgi.rb')
-rw-r--r-- | lib/unicorn/app/exec_cgi.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/unicorn/app/exec_cgi.rb b/lib/unicorn/app/exec_cgi.rb index 412c1d9..ff5f53a 100644 --- a/lib/unicorn/app/exec_cgi.rb +++ b/lib/unicorn/app/exec_cgi.rb @@ -113,8 +113,9 @@ module Unicorn::App when /^[ \t]/ then headers[prev] << "\n#{line}" if prev end end + status = headers.delete("Status") || 200 headers['Content-Length'] = size.to_s - [ 200, headers, out ] + [ status, headers, out ] end # ensures rack.input is a file handle that we can redirect stdin to |