cgi_wrapper: HTTP status code cleanups
commitb2569b344d61a7d26033aeb6198d23f99d2e7f3e
authorEric Wong <normalperson@yhbt.net>
Wed, 1 Apr 2009 08:19:27 +0000 (1 01:19 -0700)
committerEric Wong <normalperson@yhbt.net>
Wed, 1 Apr 2009 08:40:22 +0000 (1 01:40 -0700)
tree8a21fce2d458d3b9b5c9bbb08325719c53821f0b
parentad6a90ea1e0c1bd3959944f46672d754546dfb33
cgi_wrapper: HTTP status code cleanups

The default status was 404 in Mongrel and this is needed to work
with older versions of Rails.  Additionally parse the "Status:"
header if it ever got set and the actual "status" code passed
to CGI::headers was not set.
lib/unicorn/cgi_wrapper.rb