komuw / ong

ong, is a Go http toolkit.
MIT License
16 stars 4 forks source link

send Allow htt header when we send http code 405 #339

Closed komuw closed 1 year ago

komuw commented 1 year ago
This header must be sent if the server responds with a 405 Method Not Allowed 
status code to indicate which request methods can be used.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Allow