diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-04 16:41:36 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-04 16:41:36 -0700 |
commit | f81aa02448b615c4d5fc4f6544c53289dae9d2ec (patch) | |
tree | ca8b4d49e5baaedb7106932c3fc73d0078e5a0d1 /lib/unicorn/http_server.rb | |
parent | 3a76dc40dda91a3804276fcc73260bb2a529c034 (diff) | |
download | unicorn-f81aa02448b615c4d5fc4f6544c53289dae9d2ec.tar.gz |
There's an HTTP status code allocated for it in <http://www.iana.org/assignments/http-status-codes>, so return that instead of 400.
Diffstat (limited to 'lib/unicorn/http_server.rb')
-rw-r--r-- | lib/unicorn/http_server.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 3077b95..994de67 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -527,6 +527,8 @@ class Unicorn::HttpServer msg = case e when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL,Errno::EBADF Unicorn::Const::ERROR_500_RESPONSE + when Unicorn::RequestURITooLongError + Unicorn::Const::ERROR_414_RESPONSE when Unicorn::HttpParserError # try to tell the client they're bad Unicorn::Const::ERROR_400_RESPONSE else |