From a6d96b61c2d81af077d55f43121c8472aa095447 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 17 Nov 2010 11:20:02 -0800 Subject: http_server: fix HttpParserError constant resolution "Unicorn" is no longer in the default constant resolution namespace. (cherry picked from commit 390e351dd1283d4c80a12b744b1327fff091a141) --- lib/unicorn/http_server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 69b7cc8..74b2b24 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -491,7 +491,7 @@ class Unicorn::HttpServer msg = case e when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL,Errno::EBADF Unicorn::Const::ERROR_500_RESPONSE - when HttpParserError # try to tell the client they're bad + when Unicorn::HttpParserError # try to tell the client they're bad Unicorn::Const::ERROR_400_RESPONSE else logger.error "Read error: #{e.inspect}" -- cgit v1.2.3-24-ge0c7