about summary refs log tree commit homepage
path: root/lib/unicorn/http_response.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-14 21:03:45 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-15 02:38:48 -0700
commita109f7537a0527282308ac87aea6e54fb135054c (patch)
tree24035540189ec275fcaa302bf8ffebe67790fc00 /lib/unicorn/http_response.rb
parentbd8f086963d193ec91a549361938f2d3497f8f4d (diff)
downloadunicorn-a109f7537a0527282308ac87aea6e54fb135054c.tar.gz
This lets clients can pass through newly-invented status codes
that Rack does not know about.
Diffstat (limited to 'lib/unicorn/http_response.rb')
-rw-r--r--lib/unicorn/http_response.rb2
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