exec_cgi: handle Status header in CGI response
commitd385bc4f3ed7b783b7414f5d34299bd2bf242fe6
authorEric Wong <normalperson@yhbt.net>
Fri, 21 Jan 2011 04:01:01 +0000 (21 04:01 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 21 Jan 2011 19:41:54 +0000 (21 11:41 -0800)
tree0ab3aa097e377c921b9c3bcad6ab4d4dc526a691
parent3587edb6e88ebe5c24cdde090ba8dd98de493d63
exec_cgi: handle Status header in CGI response

We no longer blindly return 200 if the CGI returned another error
code.  We also don't want two Status headers in our output since we
no longer filter it out.
(cherry picked from commit 6cca8e61c66c1c2a8ebe260813fa83e44530a768)
lib/unicorn/app/exec_cgi.rb