Skip to content

Commit c90cb71

Browse files
Update packages/kit/src/runtime/server/index.js
Co-authored-by: Ben McCann <[email protected]>
1 parent a0518da commit c90cb71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/kit/src/runtime/server/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ export async function respond(request, options, state) {
145145
if (lower in headers) {
146146
if (lower === 'set-cookie') {
147147
if (!Array.isArray(headers[lower])) {
148-
headers[lower] = [/**@type{string} */ (headers[lower])];
148+
headers[lower] = [/** @type{string} */ (headers[lower])];
149149
}
150-
const cookies = /**@type{string[]} */ (headers[lower]);
151-
const new_cookies = /**@type{string[]} */ (
150+
const cookies = /** @type{string[]} */ (headers[lower]);
151+
const new_cookies = /** @type{string[]} */ (
152152
Array.isArray(new_headers[key]) ? new_headers[key] : [new_headers[key]]
153153
);
154154
for (const new_cookie of new_cookies) {

0 commit comments

Comments
 (0)