rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* disable chunked transfer-encoding
@ 2019-05-23 15:19 dorian taylor
  2019-05-23 16:14 ` dorian taylor
  2019-05-23 16:15 ` James Tucker
  0 siblings, 2 replies; 7+ messages in thread
From: dorian taylor @ 2019-05-23 15:19 UTC (permalink / raw)
  To: Rack Development


[-- Attachment #1.1: Type: text/plain, Size: 1312 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 1731 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-05-23 16:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23 15:19 disable chunked transfer-encoding dorian taylor
2019-05-23 16:14 ` dorian taylor
2019-05-23 16:15 ` James Tucker
2019-05-23 16:18   ` dorian taylor
2019-05-23 16:41     ` James Tucker
2019-05-23 16:44       ` James Tucker
2019-05-23 16:54       ` dorian taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).