benoitc / benoitc/hornbeam

Set-Cookie header deduplication bug

Open
#10 0 comments 0 reactions 1 assignee Claimed by @benoitc View on GitHub
bug
Dominant language
Erlang
Stars
166
Forks
6
PR merge metrics
No merged PRs in 30d

Description

When a WSGI application returns multiple Set-Cookie headers in a single response, only the last one is preserved. This is because response headers are collected into an Erlang map, which deduplicates keys — so multiple Set-Cookie entries collapse into one.

This breaks any application that sets more than one cookie per response (e.g. session + CSRF, or login flows that set multiple cookies).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.