http_response: pass through unknown status codes
commit13c71ade9b8860e7cc49f86edb3490235fd1bce6
authorEric Wong <normalperson@yhbt.net>
Thu, 6 Aug 2009 22:42:41 +0000 (6 15:42 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 6 Aug 2009 22:46:00 +0000 (6 15:46 -0700)
treefb00444ea428a2345f78d4009ace6f8c8c7cbe7b
parent018f90f0394e83e99aff543e7f4c1ae69f39a6fc
http_response: pass through unknown status codes

Rack::Utils::HTTP_STATUS_CODES does not define all status codes
that are assigned by IANA nor does it handle
experimental/unknown/ad-hoc status codes.  So fall back to
blindly accepting the status code as given by the application
and hope it works.
lib/unicorn/http_response.rb