mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-28 05:20:46 +00:00
MethodRouter::fallback
docs follow up
https://github.com/tokio-rs/axum/pull/733#discussion_r795244092
This commit is contained in:
parent
513766b9e7
commit
84df7eaa38
@ -58,5 +58,5 @@ By default `MethodRouter` will set the `Allow` header when returning `405 Method
|
||||
Not Allowed`. This is also done when the fallback is used unless the response
|
||||
generated by the fallback already sets the `Allow` header.
|
||||
|
||||
This means if you use `fallback` to accept additional methods make sure you set
|
||||
the `Allow` header correctly.
|
||||
This means if you use `fallback` to accept additional methods, you should make
|
||||
sure you set the `Allow` header correctly.
|
||||
|
Loading…
x
Reference in New Issue
Block a user