From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x43d.google.com (mail-pf1-x43d.google.com [IPv6:2607:f8b0:4864:20::43d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 47E971F462 for ; Thu, 23 May 2019 16:15:25 +0000 (UTC) Received: by mail-pf1-x43d.google.com with SMTP id b127sf3013997pfb.8 for ; Thu, 23 May 2019 09:15:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1558628124; cv=pass; d=google.com; s=arc-20160816; b=vYJ3YJLUeVWCJfSLIpGV4wJaw5VF1BrioOjWIMj5cMXA67eRus217fpQzt8r1yeNyX ZkHuK4bYzdh3LzNiDoE/PANGvWrbrMEUuAGgWuhw3lY4qHZRiswxmJNPqJgMuSLxmrKr uljyE+pTDNuIMVGDmC3VCxCT6gZN47v4D8HX9K7NslaCNQVMgNYyElOIbRJObQIKp4+6 5lWRsYEgCJB2UrTQiFiXAjcKjQ3chc9W0GdXkFa+y11U7RF31g9eDxKHeP8U3jkOlSFn 73FtU6YMZSUU/m9jTV6dEA/vu91YxNeSiFbuZMOz8S7UrGi/bFn11a3HxbZjrSX6wT1V y+/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=lyy48ieHb/DnEPdPBX5+gzvyYDJEkOfiZ4vBb8YdtYA=; b=Pu/OULeKSqa9DClFSy7Cs7bvTO4shuS0QpRUtziju+A15lWFI12J9IU2qrLLHrnQMh jwXBxRT4ZyPAeJ7+wyqkcVogBewqPD5Zb9lNyLAxLNKypN/JMOfW2u6TOzMeT1A+t3di X7sukx3HJRy+62d7qnpDBLtu7mPOJbrUgRFi4xIBVPlpPFUzPUKax9MArG4HyX6Hmq+M Vz/7kayPW9PAqmtuhK/gv+kjRXJjKmpw0UzeBK+qzud85gDcXVURNy0FhqVAtlUqfhuR 4krGqJauO32TBFRkmn9itqKtyszGDLZBwYlmNI7NUDTJBsfuz6kKVmCm7slG8mLftYyk t51A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j6SX5mUd; spf=pass (google.com: domain of jftucker@gmail.com designates 2607:f8b0:4864:20::131 as permitted sender) smtp.mailfrom=jftucker@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=lyy48ieHb/DnEPdPBX5+gzvyYDJEkOfiZ4vBb8YdtYA=; b=Oprht+OybccUgnVzs7uPQdWxTDp9NoZM0eXaFrnkwXWPDfdIxiXzhSJhTM4mQoJlgu st4shpum1y1MuLmrS4VlV4SYIrtdGwDiqnwtHTQJY7kEYZast7fbqb1mPHVUuZLf6mhg olZQY38lHzH/MtqNWEKTpnBqknl6r2CpM1oY0A8mePuwlEFZXnV6qXYsSIUrDOTBRe6o FNwtUwNZieeVdYTCRvzKPhu39ooUrnd6DqS1KPLd1FApEhkH4ahyEoZhGMxO/3kCXd5D al3L9hwmr2llbAR4ph5manK0emr+3+ujLYjb30a3RkhqkmuJbGJIGhk9Kfi7ocerah+m //Jg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=lyy48ieHb/DnEPdPBX5+gzvyYDJEkOfiZ4vBb8YdtYA=; b=QfYlhasC3XiJt9NFsOmveLKzbkLAM3bEP2mXoBvtWbYUnECEjb3jKgi63CrPBTI5h0 ZFS1sNXHePkeleiOGfNlV47bmywKeQ3cvukzaZjg7ySoLzG0NgWuupAh49CYGPVPGUuU 0o6IFyrZ9yUZkDkGTT5a14wgcX8uq5u5xM90VoH9q25qcQdpbi+IxXPcNF+1hF1v1sZu x4AdsqXX5NXhpaZHfs/ot4s10KikjDxCZwZ08vWLam7u1SQ5cQwIs+5BxucNPPpkYxbz hdCqXhSdMrE4vJT8tr1MHDHdYi3xyasshQHb8GLNWSVqEZPbHP0xtcWRdHUXRLeVZ7zJ pxtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=lyy48ieHb/DnEPdPBX5+gzvyYDJEkOfiZ4vBb8YdtYA=; b=miAaqVr4BATNpTsAFF59SEgIJNwmPwVYHJ6ndivHDp1dgVPJumWEJbfLrYmbsbxx36 dn0WsECs6+ssXHhIuww/0/qPlD80IRNe0kS19n5CleK7hGbV5TZ1YtgfExF05W5X6I+m GFVu7KFL+W+hbUubKjUf9KGYtiSZMhgtczVQrEFSOK/dlnZZ/482tX8X+8phdbUk2kPN H0Zntj2PreEw4taQJm6QLEUADU0mxOgEtkuktZ1rCFcwXiTw2nsi43t1okV0Hj+iHpdk 8Oejk6Ms/Sc8wgtGbYxz8xivG6jDfybGLraKfcmK6E/7cpLxrJdNhaOJQskmqGRW+2KS otYA== Sender: rack-devel@googlegroups.com X-Gm-Message-State: APjAAAW8vbr4iuORpRbIiEhIf0Z8FiiHg6P/2QOYYYTtjWQBOYmhxAvf pdn2W3BB1UhYcD+b0++puIA= X-Google-Smtp-Source: APXvYqyRx/koGTxFv+Cxj0cnvwn/8LSJVCStXwItfpPWC5vbNRWAvrcIMejYt8aCsAmWko0eUuXORg== X-Received: by 2002:aa7:8a95:: with SMTP id a21mr43976927pfc.215.1558628124473; Thu, 23 May 2019 09:15:24 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 2002:a17:902:76c2:: with SMTP id j2ls1653338plt.9.gmail; Thu, 23 May 2019 09:15:23 -0700 (PDT) X-Received: by 2002:a17:90a:2e87:: with SMTP id r7mr2342453pjd.121.1558628123946; Thu, 23 May 2019 09:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558628123; cv=none; d=google.com; s=arc-20160816; b=RewOqPNPkFw77fkMFHEBHesVcRO8vqQSILvnJg8RHEaGud90N6YwbZqBazgBrRsEC5 6aImw4tfkOxFtyDnme2W0fhSnKezExQ2cbLwG6a4tdxj+tii99ozmE4EUnFkGulPk+jt ukTfyTkxqRcYLdS4Pje8+q8kwoZe0NXiwjzmoMlLGuUbtyi0M9BukuV+QW61qWB2anta tRDkqcJaaMUiCYced1MdLWHVIaGrwxS7qsH8uYRYhWCvxRlFohH23bOrvCLe9aWKksal h1BnLA8ijotYHRo62W4p7wpyk7XbnjLfzyzcre8LCC5bhY92Z2KPYcn2LMaDpvawAU9S IGUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iG9Gmnmw7Gi1OJh2wa1L+O5IJyrJkGOPMImyZXxhrFg=; b=vX6cK/1oa/y2nUVetnRbBnsXx4/iWdsBaQgB34uw//accKX77YBUv57rg3gZUh4+KC guODGh4bXJXoR98qrogJ3dU180vHNwdWpY99rq+0WiWyG8GpuMniewbL16z9sx63sMV4 9aacnzTBO5DaJLcCt7K3TtHJEO5Bt2AT6ksGIO2mRQHRLXZ//yfdAHA+pwQZaUaCpm9T nxqK1l4XqXaK8O6RiYx3g/qd66hiVwW6CCbFBCVCBgqj05U1f+nkSUtDmxlHWjB5pY1C BlF/MT+SDNloSCOoiO9/0TRdvHkk9raUpE/QLALrq20D+gxApmByRQnM1PhuMREzwKU9 2Awg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j6SX5mUd; spf=pass (google.com: domain of jftucker@gmail.com designates 2607:f8b0:4864:20::131 as permitted sender) smtp.mailfrom=jftucker@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-it1-x131.google.com (mail-it1-x131.google.com. [2607:f8b0:4864:20::131]) by gmr-mx.google.com with ESMTPS id x13si1203707pgp.4.2019.05.23.09.15.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 09:15:23 -0700 (PDT) Received-SPF: pass (google.com: domain of jftucker@gmail.com designates 2607:f8b0:4864:20::131 as permitted sender) client-ip=2607:f8b0:4864:20::131; Received: by mail-it1-x131.google.com with SMTP id 9so9375563itf.4 for ; Thu, 23 May 2019 09:15:23 -0700 (PDT) X-Received: by 2002:a24:2955:: with SMTP id p82mr13280018itp.154.1558628122794; Thu, 23 May 2019 09:15:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: James Tucker Date: Thu, 23 May 2019 09:15:11 -0700 Message-ID: Subject: Re: disable chunked transfer-encoding To: Rack Development Content-Type: multipart/alternative; boundary="00000000000098a0cc0589906324" X-Original-Sender: jftucker@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j6SX5mUd; spf=pass (google.com: domain of jftucker@gmail.com designates 2607:f8b0:4864:20::131 as permitted sender) smtp.mailfrom=jftucker@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , --00000000000098a0cc0589906324 Content-Type: text/plain; charset="UTF-8" On Thu, May 23, 2019, 9:11 AM dorian taylor wrote: > Hi, > > I'm trying to use Rack as a FastCGI authorizer (cf > https://github.com/fast-cgi/spec/blob/master/spec.md#63-authorizer ) in > conjunction with Apache mod_authnz_fcgi ( > https://httpd.apache.org/docs/2.4/mod/mod_authnz_fcgi.html ). My problem > is that mod_authnz_fcgi insists on a 200 status code and *only* a 200 > status code to communicate any results from the fastcgi script back up the > line. This is where Rack::Chunked is ruining my day: it forces the choice > of either a Content-Length header (which is transmitted upstream and > truncates the output), or a Transfer-Encoding: chunked header where the > accompanying *token* is removed upstream, resulting in a protocol error. > > I would like to be able to express an HTTP 200 response that has neither a > Content-Length nor a Transfer-Encoding header. Is there any way to disable > Rack::Chunked for certain responses? > Such a response is only valid in http 1.0, not http 1.1. In this regard rack won't help you much, as it isn't trying to provide for that case. Have you considered not including this middleware for these requests? -- > > --- > You received this message because you are subscribed to the Google Groups > "Rack Development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rack-devel+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rack-devel/ab1058ab-ba08-4843-9489-86bcc55bde19%40googlegroups.com > > . > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "Rack Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to rack-devel+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rack-devel/CABGa_T_%2Be%3DnzMuyhe9%2BzKrab1mBeEEzw04F96%3DdTuv2Hxf_02w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. --00000000000098a0cc0589906324 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, May 23, 2019, 9:11 AM dorian taylor <dorian.taylor@gmail.com> wrote:=
Hi,

I'm trying to use Rack as a FastCGI authorizer (cf https://github.com/fast-cgi/spec/blob= /master/spec.md#63-authorizer ) in conjunction with Apache mod_authnz_f= cgi (https://httpd.apache.org/docs/2.4/mod= /mod_authnz_fcgi.html ). My problem is that mod_authnz_fcgi insists on = a 200 status code and only a 200 status code to communicate any resu= lts from the fastcgi script back up the line. This is where Rack::Chunked i= s ruining my day: it forces the choice of either a Content-Length header (w= hich is transmitted upstream and truncates the output), or a Transfer-Encod= ing: chunked header where the accompanying token is removed upstream= , resulting in a protocol error.

I would like to b= e able to express an HTTP 200 response that has neither a Content-Length no= r a Transfer-Encoding header. Is there any way to disable Rack::Chunked for= certain responses?

Such a response is only valid in http 1.0, n= ot http 1.1.

In this reg= ard rack won't help you much, as it isn't trying to provide for tha= t case.

Have you conside= red not including this middleware for these requests?

--

---
You received this message because you are subscribed to the Google Groups &= quot;Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-devel+unsubscribe@googlegroups.com.=
To view this discussion on the web visit https://groups.google.com/d/msgid/rack-devel/ab1058ab-ba08-4843-94= 89-86bcc55bde19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups &= quot;Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-dev= el+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/rack-devel/CABGa_T_%2Be%3DnzMuyhe9%2BzKrab1mBeEEzw04= F96%3DdTuv2Hxf_02w%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--00000000000098a0cc0589906324--