From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id BF8EC1F7DC for ; Mon, 9 Feb 2015 09:12:10 +0000 (UTC) From: Eric Wong To: unicorn-public@bogomips.org Subject: [PATCH 1/2] const: drop constants used by Rainbows! Date: Mon, 9 Feb 2015 09:12:09 +0000 Message-Id: <1423473130-14754-1-git-send-email-e@80x24.org> List-Id: 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 " -- EW