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

add option to encode space to '%20' as per url standard #1028

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kaffarell
Copy link

Per default the space character is exclusively encoded to '+'. This is wrong, as the URL Standard 0 specifies that the default is '%20'. PR #928 fixes this behavior, but is obviously a breaking change. To introduce this feature early, add a new function that sets the correct behavior. This way, we can use it without causing a breaking change.

Fixes: #927
Fixes: #888

Per default the space character is exclusively encoded to '+'. This is
wrong, as the URL Standard [0] specifies that the default is '%20'.
PR servo#928 fixes this behavior, but is obviously a breaking change. To
introduce this feature early, add a new function that sets the correct
behavior. This way, we can use it without causing a breaking change.

[0]: https://url.spec.whatwg.org/#string-percent-encode-after-encoding

Fixes: servo#927
Fixes: servo#888

Signed-off-by: Gabriel Goller <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant