On line 83 of simplehttp2server.go it seems PATCH is omitted in a context that it shouldn't.
Side-effect
Unless it's simply not supported as I think it is, PATCH being omitted can unexpectedly break the Principle of Least Astonishment when partially updating representation of resources on the server with a set of operations or the resource sent back itself.
The Suggestion Action
If I'm correct, Line 83 can be changed to the following:
w.Header().Set("Access-Control-Allow-Methods", "GET, OPTION, HEAD, PUT, PATCH, POST, DELETE")
The Problem
On line 83 of
simplehttp2server.go
it seemsPATCH
is omitted in a context that it shouldn't.Side-effect
Unless it's simply not supported as I think it is,
PATCH
being omitted can unexpectedly break the Principle of Least Astonishment when partially updating representation of resources on the server with a set of operations or the resource sent back itself.The Suggestion Action
If I'm correct, Line 83 can be changed to the following: