[PATCH] hgweb: return 501 instead of 400 on unknown command
Martin von Zweigbergk
martinvonz at google.com
Thu Jun 4 15:34:30 CDT 2015
On Thu, Jun 4, 2015 at 1:25 PM Matt Mackall <mpm at selenic.com> wrote:
> On Thu, 2015-06-04 at 15:15 -0500, Martin von Zweigbergk wrote:
> > # HG changeset patch
> > # User Martin von Zweigbergk <martinvonz at google.com>
> > # Date 1433439984 25200
> > # Thu Jun 04 10:46:24 2015 -0700
> > # Node ID af314daf5f45ebbaa78d370bfc7982767f5fe5ee
> > # Parent c0995cd8ff6fdc44ff20835e005771f08452a353
> > hgweb: return 501 instead of 400 on unknown command
> > When an unrecognized command is received, we return a 400 (Bad
> > Request), which means that the client is to blame. Since the set of
> > valid commands is not fixed, and it may just be a newer client sending
> > a new command, it is more fair use 501 (Not Implemented).
> But it's also an error for a client to ever send a command that it
> hasn't discovered via capabilities. So the client is indeed to blame?
Oh, I hadn't thought about that. Thanks! (So drop this patch)
> Mathematics is the supreme nostalgia of our time.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mercurial-devel