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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Different Host
behavior for setting host
argument and getting Host
header
#1317
Closed
2 tasks done
Comments
WhiteApfel
added a commit
to WhiteApfel/starlette
that referenced
this issue
Oct 19, 2021
WhiteApfel
added a commit
to WhiteApfel/starlette
that referenced
this issue
Oct 19, 2021
@aminalaee, maybe we should also cut off the port when matching host-based routes? As I understand it, the |
@WhiteApfel I agree. I think that can be useful in host-based routing, |
It might be cool to make the port handling principle similar to the subdomain principle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
master
.Describe the bug
When adding a host-based routes,
host
value can accept the port and does not process it in any way. ButHost.matches()
cuts off the port number (routing.py:432
)Expected behavior
When adding, cut off the port, or 褋onsider it when matching.
Actual behavior
Breakpoint at
routing.py:433
The text was updated successfully, but these errors were encountered: