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
IPv6 handling bug in starlette.datastructures.URL #1931
Comments
MRE
|
@Kludex I think |
Ok 👀 So... If it's too complicated, it's on @dimaqq 👀 |
@kousikmitra thanks for your fix PR!! Looks like you might need to pull in recent changes from the main branch. @Kludex any other feedback you have for @kousikmitra? I'd love to get this fix merged and brought into FastAPI for my own project. Thanks everyone for all your contributions! |
This was solved on #1965, and it will be available on Starlette 0.24.0. |
URL
uses stdliburlsplit
to parse the string URL,however, it uses this code to recombine the host and port.
Consider an IPv6 URL, like
http://[::1]:8080/
::1
::1:8080
The text was updated successfully, but these errors were encountered: