forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
url: fix inconsistent port in url.resolveObject
This commit fixes bug where url.resolveObject returns conflicting host and port values. Fixes: nodejs#8213 PR-URL: nodejs#8214 Reviewed-By: James M Snell <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1513,7 +1513,13 @@ var relativeTests2 = [ | |
//changeing auth | ||
['http://diff:[email protected]', | ||
'http://asdf:[email protected]', | ||
'http://diff:[email protected]/'] | ||
'http://diff:[email protected]/'], | ||
|
||
// changing port | ||
['https://example.com:81/', | ||
'https://example.com:82/', | ||
'https://example.com:81/'] | ||
|
||
]; | ||
relativeTests2.forEach(function(relativeTest) { | ||
const a = url.resolve(relativeTest[1], relativeTest[0]); | ||
|