http: normalize CONNECT request paths - #64876
Open
efekrskl wants to merge 2 commits into
Open
Conversation
Collaborator
|
Review requested:
|
efekrskl
force-pushed
the
fix/http-connect-path-url
branch
from
July 31, 2026 16:37
987fc94 to
8172f67
Compare
anonrig
reviewed
Jul 31, 2026
|
|
||
| try { | ||
| validatePort(match[2], 'options.path', false); | ||
| const url = new URL(`http://${path}`); |
Member
There was a problem hiding this comment.
Suggested change
| const url = new URL(`http://${path}`); | |
| const url = URL.parse(`http://${path}`); |
Member
Author
There was a problem hiding this comment.
Done, I ended up using internal URLParse as there's a lint rule against Url.parse (lib/eslint.config_partial.mjs:34)
Thanks!
anonrig
reviewed
Jul 31, 2026
| return false; | ||
| } | ||
|
|
||
| try { |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #64876 +/- ##
==========================================
- Coverage 90.29% 90.29% -0.01%
==========================================
Files 760 760
Lines 247061 247094 +33
Branches 46584 46601 +17
==========================================
+ Hits 223096 223120 +24
- Misses 15437 15454 +17
+ Partials 8528 8520 -8
🚀 New features to boost your workflow:
|
Signed-off-by: Efe Karasakal <hi@efe.dev>
efekrskl
force-pushed
the
fix/http-connect-path-url
branch
from
August 1, 2026 12:55
7cb68d6 to
673924c
Compare
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #34347
Partially a revival of #34412 which was apparently moving in the right direction but got stalled and closed