git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] http-backend: provide Allow header for 405

From
Jeff King <peff@peff.net>
Date
Sep 12, 2013, 04:46 UTC
Message-ID
<20130912044637.GA1356@sigill.intra.peff.net>
In-Reply-To
<1378945801-122021-1-git-send-email-sandals@crustytoothpaste.net>
On Thu, Sep 12, 2013 at 12:30:01AM +0000, brian m. carlson wrote:
Show 8 quoted lines
> The HTTP 1.1 standard requires an Allow header for 405 Method Not Allowed:
> 
>   The response MUST include an Allow header containing a list of valid methods
>   for the requested resource.
> 
> So provide such a header when we return a 405 to the user agent.
> 
> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Thanks, this looks good to me.
-Peff
Previous: Jonathan Nieder
Message 3 of 3 in “http-backend: provide Allow header for 405”
  1. http-backend: provide Allow header for 405brian m. carlson, Sep 12, 2013
  2. Jonathan NiederSep 12, 2013
  3. Jeff KingSep 12, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.