Thread (3 messages) 3 messages, 3 authors, 2016-06-15

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

flat view

From: Jeff King <hidden>
Date: 2016-06-15 22:58:44

On Thu, Sep 12, 2013 at 12:30:01AM +0000, brian m. carlson wrote:
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 <redacted>
Thanks, this looks good to me.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help