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: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5ED46203C1 for ; Wed, 14 Dec 2016 06:59:55 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH 0/2] revenge of the body-less responses Date: Wed, 14 Dec 2016 06:59:50 +0000 Message-Id: <20161214065952.28950-1-e@80x24.org> List-Id: It's wrong to set "Transfer-Encoding: chunked" on any response without an entity body. This confused curl -T- when I triggered a rare 204 response... Fortunately, yahns is not used in a capacity where it's failure would start World War III. Eric Wong (2): response: do not set chunked header on bodyless responses proxy_pass: do not chunk on bodyless upstream responses lib/yahns/http_response.rb | 4 ++-- lib/yahns/proxy_http_response.rb | 2 +- test/test_auto_chunk.rb | 22 +++++++++++++++++++++- test/test_proxy_pass.rb | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 4 deletions(-)