diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-05 16:42:26 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-05 16:42:26 -0700 |
commit | 77a951c5da518dda471282635c98f3b572ca15db (patch) | |
tree | 7e87f472c615c6e5522d5a5efc79fe4c5cb7bd18 /lib/unicorn | |
parent | 733cb68e444a6f324bb1ffda3839da98ef010c74 (diff) | |
download | unicorn-77a951c5da518dda471282635c98f3b572ca15db.tar.gz |
Rainbows! wants to be able to lower this eventually...
Diffstat (limited to 'lib/unicorn')
-rw-r--r-- | lib/unicorn/const.rb | 1 | ||||
-rw-r--r-- | lib/unicorn/http_server.rb | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb index 6cf12a4..d90d358 100644 --- a/lib/unicorn/const.rb +++ b/lib/unicorn/const.rb @@ -32,6 +32,7 @@ module Unicorn::Const # common errors we'll send back ERROR_400_RESPONSE = "HTTP/1.1 400 Bad Request\r\n\r\n" ERROR_414_RESPONSE = "HTTP/1.1 414 Request-URI Too Long\r\n\r\n" + ERROR_413_RESPONSE = "HTTP/1.1 413 Request Entity Too Large\r\n\r\n" ERROR_500_RESPONSE = "HTTP/1.1 500 Internal Server Error\r\n\r\n" EXPECT_100_RESPONSE = "HTTP/1.1 100 Continue\r\n\r\n" diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 994de67..dc29406 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -529,6 +529,8 @@ class Unicorn::HttpServer Unicorn::Const::ERROR_500_RESPONSE when Unicorn::RequestURITooLongError Unicorn::Const::ERROR_414_RESPONSE + when Unicorn::RequestEntityTooLargeError + Unicorn::Const::ERROR_413_RESPONSE when Unicorn::HttpParserError # try to tell the client they're bad Unicorn::Const::ERROR_400_RESPONSE else |