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=-3.9 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,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-qk1-x73f.google.com (mail-qk1-x73f.google.com [IPv6:2607:f8b0:4864:20::73f]) (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 ED5391F462 for ; Thu, 23 May 2019 16:11:12 +0000 (UTC) Received: by mail-qk1-x73f.google.com with SMTP id b79sf5873607qkc.0 for ; Thu, 23 May 2019 09:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=uNR6wP/VGxOGA+ijPz3+4QuMTYkAbnumc/YmM4KuctA=; b=om3oQ9pB+mCradqDrj7HpqRVMUC0V0uWsJoMInfMjJyeADQVfNqDqCKoxm61FjaU/q RD0cFCWniMb8jlLxHE63XopFP4d3i5tEYn78Uwm8KyyGtHUCVqsOOj/3X69v6pB5Yi9m PsmsspXC2R/8Mp9wAzBSEdkhqVXx5ztTuoNHcK509anVhUBypmOPkwSFAdqkR5abB3WK tt7QazpMqNdQFvh/GhXSSNM2crBuqo1z+QMQh46NCPpvWbN/jPfJtHHlIlEeXRhVqSos WuOyyrKoQQ3+GkjAj0GSI0LdSmGGHyh8xImCrf8vlaBQ6AE5Km7elRhdpe8xwywUn9jb BeAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=uNR6wP/VGxOGA+ijPz3+4QuMTYkAbnumc/YmM4KuctA=; b=szd8BLxopE1cXoDvO2hfSlQI/A1W3HQI8cvMT/QEDzTA97kadsCCfVrCiH4IIiUCkr USjroglIOTCi4eNQorSjNuI/qmfloPGoq4i9bOZf65RWlW5gS8fdpr9Zy/fBHMQ2BAPv g3yX+Uf26JR+RQisO6kPMZMtbp6Gy+cLaZu5q6zDVIgW1wdQLwzukOglFhswh6bv7mdG GNDoN2j5b6o/cQkU4JBI1Mr5EZWY2q+4SymRQPDHrXMbbmZJthnEwZHESGvZEDj2TbqR yhsFvqlRBrOMqLx0l1LD8mp3En8Ja17WKJ260nhN0B7mBpVXK1M/Uqn4n0TfaRM5HByi cDKg== Sender: rack-devel@googlegroups.com X-Gm-Message-State: APjAAAU+NdIw070Vjc2jc/6FOri+dyl2E0lNFYVH3EFq0oiWJM9k+fBd txjvMpHUfrpKvgaTOXWs+eU= X-Google-Smtp-Source: APXvYqzwV6kOgGHBrn8RJ/LOKdGvFPoJlbenaA/00XpRKF37FZ+0h8N4LZyXNTB3UMiDFZumGIeJlQ== X-Received: by 2002:ae9:c208:: with SMTP id j8mr2848394qkg.264.1558627871776; Thu, 23 May 2019 09:11:11 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 2002:ac8:2417:: with SMTP id c23ls511136qtc.16.gmail; Thu, 23 May 2019 09:11:11 -0700 (PDT) X-Received: by 2002:ac8:374e:: with SMTP id p14mr80907433qtb.320.1558627871377; Thu, 23 May 2019 09:11:11 -0700 (PDT) Received: by 2002:ae9:f808:0:0:0:0:0 with SMTP id x8msqkh; Thu, 23 May 2019 08:19:48 -0700 (PDT) X-Received: by 2002:a0c:af3d:: with SMTP id i58mr79307396qvc.71.1558624788135; Thu, 23 May 2019 08:19:48 -0700 (PDT) Date: Thu, 23 May 2019 08:19:47 -0700 (PDT) From: dorian taylor To: Rack Development Message-Id: Subject: disable chunked transfer-encoding MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_551_173098856.1558624787973" X-Original-Sender: dorian.taylor@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: , ------=_Part_551_173098856.1558624787973 Content-Type: multipart/alternative; boundary="----=_Part_552_1514314107.1558624787973" ------=_Part_552_1514314107.1558624787973 Content-Type: text/plain; charset="UTF-8" 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? -- --- 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. ------=_Part_552_1514314107.1558624787973 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I'm trying to use Ra= ck 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 c= ode to communicate any results from the fastcgi script back up the line. Th= is 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 o= utput), or a Transfer-Encoding: chunked header where the accompanying to= ken is removed upstream, resulting in a protocol error.

<= /div>
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 t= o disable Rack::Chunked for certain responses?

--

---
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://groups.google.com/d/msgi= d/rack-devel/ab1058ab-ba08-4843-9489-86bcc55bde19%40googlegroups.com. For more options, visit http= s://groups.google.com/d/optout.
------=_Part_552_1514314107.1558624787973-- ------=_Part_551_173098856.1558624787973--