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-05-13 17:45:37 +0000
committerEric Wong <normalperson@yhbt.net>2009-05-13 17:45:37 +0000
commit3d671b369102788a07e6d8865433d6175f86cd5a (patch)
tree40664de98d3c7e9ce65b4de8fec7c732fc6f635f /lib/unicorn/http_response.rb
parent36d02e26fc627fe431bfedc740b80dde75665987 (diff)
downloadunicorn-3d671b369102788a07e6d8865433d6175f86cd5a.tar.gz
Rack::Lint says they just have to work when to_i is
called on the status, so that's what we'll do.
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 ce04a0d..15df3f6 100644
--- a/lib/unicorn/http_response.rb
+++ b/lib/unicorn/http_response.rb
@@ -37,7 +37,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]
+      status = CODES[status.to_i]
       OUT.clear
 
       # Don't bother enforcing duplicate supression, it's a Hash most of