Fix bug when several cookies are written in the response.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>