diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-08-14 21:03:45 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-08-15 02:38:48 -0700 |
commit | a109f7537a0527282308ac87aea6e54fb135054c (patch) | |
tree | 24035540189ec275fcaa302bf8ffebe67790fc00 /lib | |
parent | bd8f086963d193ec91a549361938f2d3497f8f4d (diff) | |
download | unicorn-a109f7537a0527282308ac87aea6e54fb135054c.tar.gz |
This lets clients can pass through newly-invented status codes that Rack does not know about.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn/http_response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/http_response.rb b/lib/unicorn/http_response.rb index bfaa33d..5602a43 100644 --- a/lib/unicorn/http_response.rb +++ b/lib/unicorn/http_response.rb @@ -36,7 +36,7 @@ module Unicorn # writes the rack_response to socket as an HTTP response def self.write(socket, rack_response) status, headers, body = rack_response - status = CODES[status.to_i] + status = CODES[status.to_i] || status OUT.clear # Don't bother enforcing duplicate supression, it's a Hash most of |