Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cd613e5

Browse filesBrowse files
committed
test: handle relative https redirect
Fix `internet/test-inspector-help-page` to handle the relative redirect of `https://nodejs.org/en/docs/inspector` to `/en/docs/guides/debugging-getting-started`. Previously this URL redirected to an absolute URL. PR-URL: #51121 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
1 parent 7bea2d7 commit cd613e5
Copy full SHA for cd613e5

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎test/internet/test-inspector-help-page.js‎

Copy file name to clipboardExpand all lines: test/internet/test-inspector-help-page.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function check(url, cb) {
1818
assert(res.statusCode >= 200 && res.statusCode < 400);
1919

2020
if (res.statusCode >= 300)
21-
return check(res.headers.location, cb);
21+
return check(new URL(res.headers.location, url), cb);
2222

2323
let result = '';
2424

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.