On Jan 22, 3:38 am, Wichert Akkerman <[email protected]> wrote: > At the very least you have to send a Content-Length: 0 header. If you > don't some proxies get confused and some browsers will spin forever > waiting for data to arrive. > > Wichert.
Indeed, and in Pylons 0.9.6.2 ErrorDocuments responses are sent with no Content-Length. Add to that a bug in Varnish (http:// varnish.projects.linpro.no/ticket/400) where responses with no Content- Length header are stripped of content, and suddenly my 404 pages disappeared. The Varnish bug is fixed in trunk, and the no Content- Length on ErrorDocuments is fixed in Pylons 0.9.7 (WebOb.Response calculates and sets Content-Length automatically). But on the off chance you're in my boat and can't upgrade just yet, take a look at http://trac.openplans.org/melkjug/browser/melkjug/trunk/melkjug/lib/contentlength.py. Josh --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
