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] Make normalization idempotent #100

Merged
merged 2 commits into from
Feb 23, 2022
Merged

Conversation

e-fisher
Copy link
Contributor

Currently, if we normalize har before converting the decodeURIComponent will run twice, which can lead to unexpected results if the decoded string has '%' chars.
This change makes sure decodeURIComponent is run only once and normalization is idempotent

@w1kman
Copy link
Contributor

w1kman commented Feb 23, 2022

I would be great to have a test for the fix (that fails pre fix and passes post fix).

Copy link
Contributor

@w1kman w1kman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@e-fisher e-fisher merged commit bd31279 into master Feb 23, 2022
@e-fisher e-fisher deleted the fix/decode-uri-idempotent branch February 23, 2022 14:33
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.

None yet

2 participants