Skip to content

Commit c15085e

Browse files
author
vhess
committed
update custom fetch with new naming
1 parent e776e7b commit c15085e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/http-proxy/passes/web-incoming.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ async function stream2(
226226
handleError(err);
227227
});
228228

229-
const customFetch = options.customFetch || fetch;
229+
const customFetch = options.fetch || fetch;
230230

231-
const fetchOptions = (options.fetchOptions === true ? {} : options.fetchOptions) as FetchOptions;
231+
const fetchOptions = options.fetchOptions ?? {} as FetchOptions;
232232

233233

234234
if (options.forward) {

0 commit comments

Comments
 (0)