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

parsing url with 'localhost' as location raises InvalidUrl #3

Open
ghost opened this issue Jan 27, 2011 · 2 comments
Open

parsing url with 'localhost' as location raises InvalidUrl #3

ghost opened this issue Jan 27, 2011 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 27, 2011

Hi,
It seems there is a bug at line 212 .
Regards,
Nicolas
code :

>>> urlnorm.norm('http://localhost/')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/urlnorm.py", line 150, in norm
File "build/bdist.linux-x86_64/egg/urlnorm.py", line 158, in norm_tuple
File "build/bdist.linux-x86_64/egg/urlnorm.py", line 213, in norm_netloc
urlnorm.InvalidUrl: host u'localhost' is not valid
@schmir
Copy link

schmir commented May 8, 2013

I can confirm this issue with urlnorm 1.1.2.

This looks like a rather serious bug. Do you still maintain this project?

@ripter
Copy link

ripter commented Jul 14, 2014

This bug still exists.

msnoigrs pushed a commit to msnoigrs/urlnorm that referenced this issue Sep 17, 2015
Make sure we have a valid host in norm_netloc().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants