diff --git a/packages/adapter-node/src/handler.js b/packages/adapter-node/src/handler.js index 2ccd63b6684a..5e80ec2daf3d 100644 --- a/packages/adapter-node/src/handler.js +++ b/packages/adapter-node/src/handler.js @@ -201,7 +201,9 @@ function normalise_header(name, value) { * @returns {string} */ function get_origin(headers) { - const protocol = decodeURIComponent(normalise_header(protocol_header, headers[protocol_header]) || 'https'); + const protocol = decodeURIComponent( + normalise_header(protocol_header, headers[protocol_header]) || 'https' + ); // this helps us avoid host injections through the protocol header if (protocol.includes(':')) { diff --git a/packages/kit/types/index.d.ts b/packages/kit/types/index.d.ts index 0cd1dc26a3e8..41087e0099d1 100644 --- a/packages/kit/types/index.d.ts +++ b/packages/kit/types/index.d.ts @@ -2769,7 +2769,7 @@ declare module '@sveltejs/kit' { class Redirect_1 { constructor(status: 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308, location: string); - status: 301 | 302 | 303 | 307 | 308 | 300 | 304 | 305 | 306; + status: 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308; location: string; }