Skip to content

Commit 68f8d2e

Browse files
committed
revert change to fetcher.js
1 parent 1448c26 commit 68f8d2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/kit/src/runtime/client/fetcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ function build_selector(resource, opts) {
162162
/** @type {import('types').StrictBody[]} */
163163
const values = [];
164164

165-
if (opts?.headers) {
165+
if (opts.headers) {
166166
values.push([...new Headers(opts.headers)].join(','));
167167
}
168168

169-
if (opts?.body && (typeof opts.body === 'string' || ArrayBuffer.isView(opts.body))) {
169+
if (opts.body && (typeof opts.body === 'string' || ArrayBuffer.isView(opts.body))) {
170170
values.push(opts.body);
171171
}
172172

0 commit comments

Comments
 (0)