[PATCH] hgweb: don't send a body or illegal headers during 304 response

Patrick Mézard pmezard at gmail.com
Sat Oct 16 18:18:19 CDT 2010


Le 17/10/10 00:29, Augie Fackler a écrit :
> # HG changeset patch
> # User Augie Fackler <durin42 at gmail.com>
> # Date 1287268144 18000
> # Node ID 7c6813db1e8b9fda385eeb3d8f551aafb309739b
> # Parent  7e14e67e6622ea7356ab313a5497fcee74a8d007
> hgweb: don't send a body or illegal headers during 304 response
> 
> Without this fix, mod_wsgi and spawning get in a wedged state after
> sending a 304 response. Not sending a body fixed that problem. The
> header change was discovered by using wsgiref.validate.validator to
> check for other errors.

I pushed a slightly modified version in crew (as discussed on IRC):

    http://hg.intevation.org/mercurial/crew/rev/8dcd3203a261

Thanks!

--
Patrick Mézard


More information about the Mercurial-devel mailing list