MethodRouter::fallback docs follow up

https://github.com/tokio-rs/axum/pull/733#discussion_r795244092
This commit is contained in:
David Pedersen 2022-01-31 09:37:29 +01:00
parent 513766b9e7
commit 84df7eaa38

View file

@ -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.