Skip to content

Commit 69047bb

Browse files
committed
fix: header exists (see .has above)
1 parent f841be2 commit 69047bb

File tree

1 file changed

+1
-1
lines changed
  • packages/runtime/src/templates/edge-shared

1 file changed

+1
-1
lines changed

packages/runtime/src/templates/edge-shared/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export const buildResponse = async ({
187187

188188
// NextResponse doesn't set cookies onto the originResponse, so we need to copy them over
189189
if (response.headers.has('set-cookie')) {
190-
response.originResponse.headers.set('set-cookie', response.headers.get('set-cookie'))
190+
response.originResponse.headers.set('set-cookie', response.headers.get('set-cookie')!)
191191
}
192192

193193
// If it's JSON we don't need to use the rewriter, we can just parse it

0 commit comments

Comments
 (0)