On Fri, Feb 11, 2011 at 12:34 PM, Jason McKellar <[email protected]>wrote:

> I have deployed Pylons using mod_fcgi behind Apache using flup. I have an
> action that returns a small binary file (after setting the headers for
> content-type, content-disposition, and content-length). This works fine when
> running with paste, but when I deploy it using fcgi the content-length
> header is changed to more than double what it is supposed to be when it is
> returned.
>
> Any ideas on how to go about debugging or fixing this issue?
>
> I would rather not change my deployment method, but I could use mod_wsgi or
> mod_proxy with paste if I have to.
>
>
Upon further inspection it appears that the content-length from apache is
exactly double the true content-length returned by pylons. I have now also
tried using mod_proxy with paste http server and I'm still getting a double
sized content-length. This is on FreeBSD, I just tried it on Linux and the
content-length is fine using mod_proxy.

I suppose this means I should be asking this on some Apache mailing list.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to