From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS51290 178.217.184.0/21 X-Spam-Status: No, score=-0.2 required=3.0 tests=BAYES_00,RCVD_IN_MSPIKE_BL, RCVD_IN_MSPIKE_ZBI,RCVD_IN_XBL,SPF_FAIL,SPF_HELO_FAIL shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from 80x24.org (tor-exit.xshells.net [178.217.187.39]) by dcvr.yhbt.net (Postfix) with ESMTP id 59ACF202C1 for ; Thu, 9 Mar 2017 03:16:43 +0000 (UTC) From: Eric Wong To: regurgitator-public@bogomips.org Subject: [PATCH] endpoint: do not leak the Connection from the storage node Date: Thu, 9 Mar 2017 03:16:40 +0000 Message-Id: <20170309031640.6907-1-e@80x24.org> List-Id: Some Rack servers allow the app to control connection persistence using the "Connection" response header; there's no need for it, here. --- lib/regurgitator/endpoint.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/regurgitator/endpoint.rb b/lib/regurgitator/endpoint.rb index 24662d3..6fb9794 100644 --- a/lib/regurgitator/endpoint.rb +++ b/lib/regurgitator/endpoint.rb @@ -71,6 +71,7 @@ module Regurgitator::Endpoint # :nodoc: status, headers, body = r = Regurgitator::FileRequest.run(env, uris) filename!(env, headers, dkey) headers['ETag'] = %("#{info[:fid]}") + headers.delete('Connection'.freeze) case env["REQUEST_METHOD"] when "GET" -- EW