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
The origin server MUST generate an Allow header field in a 405 response containing a list of the target resource's currently supported methods.
gin does not do this with HandleMethodNotAllowed set to true. Also it is arguable that even with this setting enabled, all HTTP/1.0 requests should still be given a 404 error as HTTP 1.0 does not define 405.
Description
https://tools.ietf.org/html/rfc7231#section-6.5.5 says
gin does not do this with
HandleMethodNotAllowed
set totrue
. Also it is arguable that even with this setting enabled, all HTTP/1.0 requests should still be given a 404 error as HTTP 1.0 does not define 405.How to reproduce
Server:
Test:
Expectations
Actual result
Environment
The text was updated successfully, but these errors were encountered: