Skip to content

Commit 26d824b

Browse files
committed
fix type error
1 parent 4d328fa commit 26d824b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resolvers/http.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function download(u: URL | string, httpOptions: HTTPResolverOptions, _redi
8686
} else if (!("location" in res.headers) || !res.headers.location) {
8787
throw ono({ status: res.status }, `HTTP ${res.status} redirect with no location header`);
8888
} else {
89-
const redirectTo = url.resolve(u, res.headers.location);
89+
const redirectTo = url.resolve(u.href, res.headers.location as string);
9090
return download(redirectTo, httpOptions, redirects);
9191
}
9292
} else {

0 commit comments

Comments
 (0)