From 5fd3b3166a4ef9c0c5e4321c1b8b840840cbf24b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Feb 2015 09:12:09 +0000 Subject: const: drop constants used by Rainbows! Rainbows! (in maintenance mode) will need to define it's own constants in the future. We'll trim down our constant usage in subsequent commits as we take advantage of Ruby VM improvements. --- lib/unicorn/const.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb index 26fa62b..e24b511 100644 --- a/lib/unicorn/const.rb +++ b/lib/unicorn/const.rb @@ -25,14 +25,6 @@ module Unicorn::Const MAX_BODY = 1024 * 112 # :stopdoc: - # common errors we'll send back - # (N.B. these are not used by unicorn, but we won't drop them until - # unicorn 5.x to avoid breaking Rainbows!). - 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" EXPECT_100_RESPONSE_SUFFIXED = "100 Continue\r\n\r\nHTTP/1.1 " -- cgit v1.2.3-24-ge0c7