From e0ad4353f0c0f8ae27301df3e694384f687a4264 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 20 Jan 2011 02:16:04 -0800 Subject: remove unused 416 error constants/exceptions We handle that locally in rainbows/response now --- lib/rainbows.rb | 1 - lib/rainbows/const.rb | 1 - lib/rainbows/error.rb | 2 -- 3 files changed, 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 -- cgit v1.2.3-24-ge0c7