Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Oct 18, 2023
1 parent 03d71f0 commit f8447f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/cookies/src/response-cookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ export class ResponseCookies {
constructor(responseHeaders: Headers) {
this._headers = responseHeaders

const setCookie = responseHeaders.getSetCookie?.()
responseHeaders.get('set-cookie') ?? []
const setCookie =
responseHeaders.getSetCookie?.() ??
responseHeaders.get('set-cookie') ??
[]

const cookieStrings = Array.isArray(setCookie)
? setCookie
Expand Down

0 comments on commit f8447f6

Please sign in to comment.