mirror of
https://github.com/tokio-rs/axum.git
synced 2025-01-03 17:52:18 +01: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue