Skip to content

Commit

Permalink
revert change to fetcher.js
Browse files Browse the repository at this point in the history
  • Loading branch information
eltigerchino committed Nov 18, 2024
1 parent 1448c26 commit 68f8d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kit/src/runtime/client/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ function build_selector(resource, opts) {
/** @type {import('types').StrictBody[]} */
const values = [];

if (opts?.headers) {
if (opts.headers) {
values.push([...new Headers(opts.headers)].join(','));
}

if (opts?.body && (typeof opts.body === 'string' || ArrayBuffer.isView(opts.body))) {
if (opts.body && (typeof opts.body === 'string' || ArrayBuffer.isView(opts.body))) {
values.push(opts.body);
}

Expand Down

0 comments on commit 68f8d2e

Please sign in to comment.