Skip to content

Commit cd613e5

Browse 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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines 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-
returncheck(res.headers.location,cb);
21+
returncheck(newURL(res.headers.location,url),cb);
2222

2323
letresult='';
2424

0 commit comments

Comments
 (0)