diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-27 23:58:00 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-27 23:58:00 +0000 |
commit | 63d95ac64949a642596946b2b44b2d0bb7b9fefb (patch) | |
tree | aa27ddfd608ec6d0c69d274ed32a322ab4f209f1 /lib | |
parent | 8756eac8c0e993caa6f704e27985405f6c9dfa7d (diff) | |
download | rainbows-63d95ac64949a642596946b2b44b2d0bb7b9fefb.tar.gz |
No point in using a class here, there's no object
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows/http_response.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rainbows/http_response.rb b/lib/rainbows/http_response.rb index fdbf3dd..811a793 100644 --- a/lib/rainbows/http_response.rb +++ b/lib/rainbows/http_response.rb @@ -2,7 +2,9 @@ require 'time' # for Time#httpdate # :stopdoc: -class Rainbows::HttpResponse < ::Unicorn::HttpResponse +module Rainbows::HttpResponse + + CODES = Unicorn::HttpResponse::CODES def self.header_string(status, headers, out) status = CODES[status.to_i] || status |