We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d328fa commit 26d824bCopy full SHA for 26d824b
lib/resolvers/http.ts
@@ -86,7 +86,7 @@ async function download(u: URL | string, httpOptions: HTTPResolverOptions, _redi
86
} else if (!("location" in res.headers) || !res.headers.location) {
87
throw ono({ status: res.status }, `HTTP ${res.status} redirect with no location header`);
88
} else {
89
- const redirectTo = url.resolve(u, res.headers.location);
+ const redirectTo = url.resolve(u.href, res.headers.location as string);
90
return download(redirectTo, httpOptions, redirects);
91
}
92
0 commit comments