FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: improve code snippet alternative of url.parse() using WHATWG URL by styfle · Pull Request #60209 · nodejs/node · GitHub

/ node Public

doc: improve code snippet alternative of url.parse() using WHATWG URL - #60209

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
styfle:patch-1
Oct 13, 2025
Merged

doc: improve code snippet alternative of url.parse() using WHATWG URL#60209
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
styfle:patch-1

Conversation

styfle commented Oct 11, 2025

Copy link
Copy Markdown
Member

This is a follow up to a comment #59736 (comment) that pointed out the existing code snippet is not safe since the req.url can start with a double slash which would cause the hostname to be replaced.

nodejs-github-bot added doc Issues and PRs related to the documentations. url Issues and PRs related to the legacy built-in url module. labels Oct 11, 2025
aduh95 added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Oct 11, 2025
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 13, 2025
nodejs-github-bot merged commit 1cd16e5 into nodejs:main Oct 13, 2025
22 checks passed

Copy link
Copy Markdown
Collaborator

Landed in 1cd16e5

styfle deleted the patch-1 branch October 13, 2025 15:22
aduh95 pushed a commit that referenced this pull request Oct 31, 2025
PR-URL: #60209
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
aduh95 pushed a commit that referenced this pull request Nov 7, 2025
PR-URL: #60209
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
aduh95 pushed a commit that referenced this pull request Feb 17, 2026
PR-URL: #60209
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
aduh95 mentioned this pull request Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. doc Issues and PRs related to the documentations. url Issues and PRs related to the legacy built-in url module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL