Browse Source
This changes RouteMatch so it contains a slice of the methods that would have been accepted. That slice is then used to populate the Allow header accordingly. This makes the default behavior of mux when returning 405 Method Not Allowed compliant with [RFC 7231§6.5.5][RFC7231]. [RFC7231]: https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5pull/652/head
3 changed files with 24 additions and 9 deletions
Loading…
Reference in new issue