Skip to content

Commit f921404

Browse files
committed
chore: fix internal type errors
1 parent 581bdf3 commit f921404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/entry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const debug = DEBUG;
77

88
__fetch_polyfill();
99

10+
/** @type {import('@sveltejs/kit').App} */
1011
const app = new App(manifest);
1112

1213
/**
@@ -25,8 +26,7 @@ export async function index(context) {
2526
const originalUrl = headers['x-ms-original-url'];
2627
const url = new URL(originalUrl);
2728

28-
const encoding = headers['content-encoding'] || 'utf-8';
29-
const rawBody = typeof body === 'string' ? Buffer.from(body, encoding) : body;
29+
const rawBody = typeof body === 'string' ? Buffer.from(body, 'utf-8') : body;
3030
const request = {
3131
url,
3232
method,

0 commit comments

Comments
 (0)