Skip to content
Permalink
Browse files
fix: set-cookie header contains undefined value (#372)
  • Loading branch information
Yama-Tomo authored and pi0 committed Jun 5, 2019
1 parent b76ff7d commit 323346e430193edd0596f9d45021396e663b8145
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit 323346e

Please sign in to comment.