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: yahns-public@yhbt.net Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6BBA21F706; Thu, 20 Nov 2014 20:45:49 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Cc: e@80x24.org Subject: [PATCH 1/6] http_response: remove arg for Array#join Date: Thu, 20 Nov 2014 20:45:37 +0000 Message-Id: <1416516342-18987-2-git-send-email-e@80x24.org> X-Mailer: git-send-email 2.2.0.rc0.dirty In-Reply-To: <1416516342-18987-1-git-send-email-e@80x24.org> References: <1416516342-18987-1-git-send-email-e@80x24.org> List-Id: Our kv_str method already fails if `$,' is a non-empty string. Rack::Chunked and likely other middlewares fails when `$,' is not empty, too, so supporting apps which set `$,' is probably not feasible. --- lib/yahns/http_response.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yahns/http_response.rb b/lib/yahns/http_response.rb index 33ae93e..e48e57c 100644 --- a/lib/yahns/http_response.rb +++ b/lib/yahns/http_response.rb @@ -27,7 +27,7 @@ module Yahns::HttpResponse # :nodoc: CONN_CLOSE = "Connection: close\r\n\r\n" Z = "" CCC_RESPONSE_START = [ 'HTTP', '/1.1 ' ] - RESPONSE_START = CCC_RESPONSE_START.join('') + RESPONSE_START = CCC_RESPONSE_START.join R100_RAW = "HTTP/1.1 100 Continue\r\n\r\n" R100_CCC = "100 Continue\r\n\r\nHTTP/1.1 " HTTP_EXPECT = "HTTP_EXPECT" -- EW