From 63d95ac64949a642596946b2b44b2d0bb7b9fefb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 27 Jun 2010 23:58:00 +0000 Subject: http_response: make this a module, not a class No point in using a class here, there's no object --- lib/rainbows/http_response.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/rainbows/http_response.rb') 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 -- cgit v1.2.3-24-ge0c7