mirror of
https://github.com/tokio-rs/axum.git
synced 2025-10-01 15:00: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
|
Not Allowed`. This is also done when the fallback is used unless the response
|
||||||
generated by the fallback already sets the `Allow` header.
|
generated by the fallback already sets the `Allow` header.
|
||||||
|
|
||||||
This means if you use `fallback` to accept additional methods make sure you set
|
This means if you use `fallback` to accept additional methods, you should make
|
||||||
the `Allow` header correctly.
|
sure you set the `Allow` header correctly.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user