Skip to content
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

Raise InvalidUrl if host starts with '.' character. #5414

Merged
merged 1 commit into from
Dec 29, 2021

Conversation

mondeja
Copy link
Contributor

@mondeja mondeja commented Apr 5, 2020

Closes #5367

Attempting to get http://.example.com results in a UnicodeError but should be raise InvalidUrl as attempting to get http://*example.com.

I've added InvalidUrl tests for http://.example.com and http://*example.com.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good.

Copy link

@matespinda01 matespinda01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@nateprewitt nateprewitt added this to the 2.27.0 milestone Sep 9, 2021
@sigmavirus24 sigmavirus24 merged commit d096599 into psf:main Dec 29, 2021
@nateprewitt nateprewitt mentioned this pull request Dec 29, 2021
@mondeja mondeja deleted the 5367 branch December 29, 2021 07:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting http://.example.com raises UnicodeError
5 participants