Skip to content

Node.js server without a framework: decodeURI#43579

Merged
hamishwillee merged 1 commit intomdn:mainfrom
ratijas:patch-1
Mar 27, 2026
Merged

Node.js server without a framework: decodeURI#43579
hamishwillee merged 1 commit intomdn:mainfrom
ratijas:patch-1

Conversation

@ratijas
Copy link
Contributor

@ratijas ratijas commented Mar 25, 2026

Description

In general case, decoding URI is needed to transform it to a usable file path without %percent encoded whitespaces etc.

In general case, decoding URI is needed to transform it to a usable file path without %percent encoded whitespaces etc.
@ratijas ratijas requested a review from a team as a code owner March 25, 2026 18:09
@github-actions github-actions bot added Content:Learn Learning area docs size/xs [PR only] 0-5 LoC changed labels Mar 25, 2026
@ratijas
Copy link
Contributor Author

ratijas commented Mar 25, 2026

Might also wanna strip ?query= params as well. Those are sometimes used with a dummy value just to bypass caching.

@chrisdavidmills chrisdavidmills requested review from hamishwillee and removed request for a team March 26, 2026 07:54
@github-actions
Copy link
Contributor

Copy link
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

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

Thanks @ratijas - and congrats on landing your first PR merge.

Might also wanna strip ?query= params as well. Those are sometimes used with a dummy value just to bypass caching.

We could, but I don't think it is necessary. Would consider a PR, but not sure it would add much as a "teaching opportunity".

@hamishwillee hamishwillee merged commit c5d8af2 into mdn:main Mar 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Learn Learning area docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants