-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
break: do not decode req.path
by default
#172
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have this change locally, but with some performance optimizations too.
On its own, decodeURIComponent
is expensive & needs to be done sparingly. But this (the suggestion) can land in the meantime before those optimizations are ready to land.
Co-authored-by: Luke Edwards <[email protected]>
Codecov Report
@@ Coverage Diff @@
## next #172 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 105 107 +2
=========================================
+ Hits 105 107 +2
Continue to review full report at Codecov.
|
req.path
by default
Just for the record, the effect of this PR:
|
After the linked commit:
|
- Related: sveltejs/kit#2191 - Related: lukeed/polka#172
Fixes #142