diff --git a/packages/kit/src/runtime/server/page/load_node.js b/packages/kit/src/runtime/server/page/load_node.js index 70b9c61dcf1a..800a29feede4 100644 --- a/packages/kit/src/runtime/server/page/load_node.js +++ b/packages/kit/src/runtime/server/page/load_node.js @@ -151,10 +151,7 @@ export async function load_node({ method: opts.method || 'GET', headers, path: relative, - rawBody: - opts.body == null - ? null - : new TextEncoder().encode(/** @type {string} */ (opts.body)), + rawBody: opts.body == null ? null : new TextEncoder().encode(opts.body), query: new URLSearchParams(search) }, options,