[PATCH] hgweb: Respond with HTTP 403 for disabled archive types instead of 404

Rocco Rutte pdmef at gmx.net
Wed Sep 10 02:37:46 CDT 2008


># HG changeset patch
># User Rocco Rutte <pdmef at gmx.net>
># Date 1220628517 -7200
># Node ID 29fb2cc67a8a40ee8676ee8c047c3af1eb764fef
># Parent  d37b5937a6f2a06545879476ef21145ccd7a9423
>hgweb: Respond with HTTP 403 for disabled archive types instead of 404

>This makes it easier for clients/users to distinct between supported
>but disabled and unsupported archive types.

Are there any objections or did this one get overlooked? If responding 
with 403 for disallowed archives isn't the right thing, I'm also happy 
to send another patch just testing that disallowed archives give 404...

Regards, Rocco


More information about the Mercurial-devel mailing list