You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
lozandier
added a commit
to lozandier/simplehttp2server
that referenced
this issue
Nov 4, 2015
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:
The text was updated successfully, but these errors were encountered: