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

Teach to_file_path to understand percent-encoded drive letters on Windows. #231

Merged
merged 1 commit into from Oct 20, 2016

Conversation

@Arnavion
Copy link
Contributor

Arnavion commented Oct 20, 2016

Fixes #230


I thought about using percent_encoded instead of matching %3a bytes individually, but I figured it would be overkill. If you think otherwise I'm happy to change it.


This change is Reviewable

@SimonSapin
Copy link
Member

SimonSapin commented Oct 20, 2016

Converting to/from file paths is not covered by https://url.spec.whatwg.org/ , so it’s probably fine to tweak that behavior.

Looks good, thanks!

@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Oct 20, 2016

📌 Commit 6492574 has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Oct 20, 2016

Test exempted - status

@bors-servo bors-servo merged commit 6492574 into servo:master Oct 20, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test exempted
Details
bors-servo added a commit that referenced this pull request Oct 20, 2016
Teach to_file_path to understand percent-encoded drive letters on Windows.

Fixes #230

---

I thought about using `percent_encoded` instead of matching `%3a` bytes individually, but I figured it would be overkill. If you think otherwise I'm happy to change it.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/231)
<!-- Reviewable:end -->
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

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