From 682b981503b0e54f44bdefff60d7fc062d8ad1e2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 20 Nov 2014 03:53:44 +0000 Subject: http_response: remove arg for Array#join 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(-) (limited to 'lib') 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" -- cgit v1.2.3-24-ge0c7