http-backend: provide Allow header for 405
authorBrian M. Carlson <redacted>
Thu, 12 Sep 2013 00:30:01 +0000 (00:30 +0000)
committerJunio C Hamano <redacted>
Thu, 12 Sep 2013 15:44:44 +0000 (08:44 -0700)
commit9247be05cf686dc98dd504f8f9fb0f07da1a29d1
treef689ed3320df6a2a69796929e5cf3f19c855d5f2
parente45bda876ae2e39ac1e11ba1609f2c363ad4959a
http-backend: provide Allow header for 405

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>
Reviewed-by: Jonathan Nieder <redacted>
Acked-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
http-backend.c
git clone https://git.99rst.org/PROJECT