diff --git a/src/files/firebase-to-svelte-kit.js b/src/files/firebase-to-svelte-kit.js index 7860e84..4058fdb 100644 --- a/src/files/firebase-to-svelte-kit.js +++ b/src/files/firebase-to-svelte-kit.js @@ -13,7 +13,7 @@ export function toSvelteKitRequest(request) { headers: toSvelteKitHeaders(request.headers), rawBody: request.rawBody ? request.rawBody - : new Uint8Array(), + : null, host, path: pathname, query: searchParameters, diff --git a/tests/unit/src/files/firebase-to-svelte-kit.test.js b/tests/unit/src/files/firebase-to-svelte-kit.test.js index bc4400e..db07039 100644 --- a/tests/unit/src/files/firebase-to-svelte-kit.test.js +++ b/tests/unit/src/files/firebase-to-svelte-kit.test.js @@ -67,7 +67,7 @@ test('firebase-functions.https.request GET is converted to SvelteKit Incoming re host: 'us-central1-func.cloudfunctions.net', 'x-forwarded-proto': 'https', }, - rawBody: new Uint8Array(), + rawBody: null, host: 'https://us-central1-func.cloudfunctions.net', path: '/url', query: new URL('/url?some=thing', 'https://us-central1-func.cloudfunctions.net').searchParams,