Skip to content

fix: URL path encoding #1

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

Merged
merged 1 commit into from
Jan 10, 2023
Merged

Conversation

kittaakos
Copy link
Contributor

Fixes the path encoding when creating new URLs.

Instead of using url.Parse which cuts the fragment after # from the path, an empty URL is created with file: scheme, and the Path is assigned to the URL which will take care of the automatic segment encoding.

Ref: arduino/arduino-ide#1124
Signed-off-by: Akos Kitta [email protected]

@cmaglie cmaglie merged commit b7458c0 into bugst:master Jan 10, 2023
@kittaakos kittaakos deleted the arduino/arduino-ide#1124 branch January 10, 2023 09:15
cmaglie added a commit to arduino/arduino-language-server that referenced this pull request Jan 10, 2023
cmaglie added a commit to arduino/arduino-language-server that referenced this pull request Jan 10, 2023
cmaglie added a commit to arduino/arduino-language-server that referenced this pull request Jan 10, 2023
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