-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested routes are missing the allow header in 405 Method Not Allowed responses #1525
Comments
I tried the same code on axum 0.6.0-rc.4 and the allow header is present. |
Good catch! I'm curious why that was but yeah if it's fixed in 0.6 then we are good. |
I think we should add a test for it though. Do you perhaps wanna make a PR? |
Yes! I would love to. |
taylor1791
added a commit
to taylor1791/axum
that referenced
this issue
Nov 12, 2022
taylor1791
added a commit
to taylor1791/axum
that referenced
this issue
Nov 12, 2022
taylor1791
added a commit
to taylor1791/axum
that referenced
this issue
Nov 12, 2022
taylor1791
added a commit
to taylor1791/axum
that referenced
this issue
Nov 12, 2022
davidpdrsn
pushed a commit
that referenced
this issue
Nov 14, 2022
Closed
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Versions
axum v0.5.17
axum-core v0.2.9
Platform
Linux [hostname] 5.15.72 #1-NixOS SMP Wed Oct 5 08:39:44 UTC 2022 x86_64 GNU/Linux
Description
When the server replies with 405 from a nested route, it should include an
allow
header. As of axum 0.5.17, it does not.Steps to reproduce:
Run this code:
Send a POST request to
/api/hello
.Observe that the response did not include an
allow
header.The code in #731 still contains the reply header, indicating this is specific to
.nest
.The text was updated successfully, but these errors were encountered: