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

urlutils.rs - an empty password should be saved as None, not empty string #93

Merged
merged 1 commit into from Apr 10, 2015

Conversation

@valenting
Copy link
Collaborator

valenting commented Apr 9, 2015

Right now, if I set a username and password, then I clear them, the url serialization would be http://:@example.com
Easily solved just by setting the password to None when the input is empty string.

SimonSapin added a commit that referenced this pull request Apr 10, 2015
urlutils.rs - an empty password should be saved as None, not empty string
@SimonSapin SimonSapin merged commit 115e44c into servo:master Apr 10, 2015
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@SimonSapin
Copy link
Member

SimonSapin commented Apr 10, 2015

This matches the spec at https://url.spec.whatwg.org/#set-the-password . Thanks! Let me know if you need this on crates.io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.