We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f3db08 commit 95f7de5Copy full SHA for 95f7de5
packages/kit/test/apps/basics/src/hooks.server.js
@@ -57,7 +57,7 @@ export const handle = sequence(
57
return resolve(event);
58
},
59
({ event, resolve }) => {
60
- if (!(event.request.headers.has('user-agent') ^ event.isSyntheticRequest)) {
+ if (event.request.headers.has('user-agent') === !!event.isSyntheticRequest) {
61
throw new Error('Synthetic requests should have isSyntheticRequest set to true');
62
}
63
0 commit comments