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

Fix #767: display proper URL hostname when scheme is missing slashes #951

Merged
merged 4 commits into from
Mar 9, 2016

Conversation

daliacoss
Copy link
Contributor

this updates webcompat.form.normalize_url to account for missing slashes (e.g., "http:/example.com"), and adds basic unit tests for normalize_url and domain_name.

r? @miketaylr

@karlcow karlcow changed the title #767: display proper URL hostname when scheme is missing slashes #767: display proper URL hostname when scheme is missing slashes Mar 7, 2016
@daliacoss daliacoss changed the title #767: display proper URL hostname when scheme is missing slashes Fix #767: display proper URL hostname when scheme is missing slashes Mar 7, 2016
from webcompat import form


class TestForm(unittest.TestCase):

This comment was marked as abuse.

@miketaylr
Copy link
Member

This is a good start @deckycoss, let me or @karlcow know if you have any other questions.

@daliacoss
Copy link
Contributor Author

@miketaylr i believe this last commit should address your feedback

@miketaylr
Copy link
Member

LGTM. 👍

miketaylr pushed a commit that referenced this pull request Mar 9, 2016
Fix #767: display proper URL hostname when scheme is missing slashes
@miketaylr miketaylr merged commit 7aa4476 into webcompat:master Mar 9, 2016
@daliacoss daliacoss deleted the url-missing-slash-fix branch March 9, 2016 23:56
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

Successfully merging this pull request may close these issues.

2 participants