diff options
Diffstat (limited to 'lib')
-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 |