diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-20 02:16:04 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-20 02:16:04 -0800 |
commit | e0ad4353f0c0f8ae27301df3e694384f687a4264 (patch) | |
tree | ecc95142b08f5aeaf4b4a25c9d73f6d42bca88b3 | |
parent | fa0b3774dd9cd73331e83b3517c37964ab265074 (diff) | |
download | rainbows-e0ad4353f0c0f8ae27301df3e694384f687a4264.tar.gz |
We handle that locally in rainbows/response now
-rw-r--r-- | lib/rainbows.rb | 1 | ||||
-rw-r--r-- | lib/rainbows/const.rb | 1 | ||||
-rw-r--r-- | lib/rainbows/error.rb | 2 |
3 files changed, 0 insertions, 4 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb index 5de8a80..e559919 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -14,7 +14,6 @@ Unicorn::SocketHelper::DEFAULTS.merge!({ module Rainbows O = {} # :nodoc: - class Response416 < RangeError; end # map of numeric file descriptors to IO objects to avoid using IO.new # and potentially causing race conditions when using /dev/fd/ diff --git a/lib/rainbows/const.rb b/lib/rainbows/const.rb index 62610bd..04ed92d 100644 --- a/lib/rainbows/const.rb +++ b/lib/rainbows/const.rb @@ -21,7 +21,6 @@ module Rainbows::Const CLIENT_IO = "hack.io".freeze ERROR_413_RESPONSE = "HTTP/1.1 413 Request Entity Too Large\r\n\r\n" - ERROR_416_RESPONSE = "HTTP/1.1 416 Requested Range Not Satisfiable\r\n\r\n" RACK_INPUT = Unicorn::HttpRequest::RACK_INPUT REMOTE_ADDR = Unicorn::HttpRequest::REMOTE_ADDR diff --git a/lib/rainbows/error.rb b/lib/rainbows/error.rb index fa6da61..98de6ba 100644 --- a/lib/rainbows/error.rb +++ b/lib/rainbows/error.rb @@ -35,8 +35,6 @@ module Rainbows::Error when EOFError, Errno::ECONNRESET, Errno::EPIPE, Errno::EINVAL, Errno::EBADF, Errno::ENOTCONN # swallow error if client shuts down one end or disconnects - when Rainbows::Response416 - Rainbows::Const::ERROR_416_RESPONSE when Unicorn::HttpParserError Rainbows::Const::ERROR_400_RESPONSE # try to tell the client they're bad when IOError # HttpParserError is an IOError |