Skip to content

Commit

Permalink
fix(5383): undici works better with two arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
GauBen committed Jul 6, 2022
1 parent 0915cb5 commit 780ff76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/page/load_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export async function load_node({
opts.headers.delete('connection');

const external_request = new Request(requested, /** @type {RequestInit} */ (opts));
response = await options.hooks.externalFetch.call(null, external_request);
response = await options.hooks.externalFetch.call(null, external_request.url, external_request);
}

const set_cookie = response.headers.get('set-cookie');
Expand Down

0 comments on commit 780ff76

Please sign in to comment.