Skip to content

Commit

Permalink
fix: set-cookie header contains undefined value (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yama-Tomo authored and pi0 committed Jun 5, 2019
1 parent b76ff7d commit 323346e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default class Storage {
} else if (process.server && this.ctx.res) {
// Send Set-Cookie header from server side
const prevCookies = this.ctx.res.getHeader('Set-Cookie')
this.ctx.res.setHeader('Set-Cookie', [].concat(prevCookies, serializedCookie))
this.ctx.res.setHeader('Set-Cookie', [].concat(prevCookies, serializedCookie).filter(v => v))
}

return value
Expand Down

0 comments on commit 323346e

Please sign in to comment.