extend/cowboy — pull request #247 by josevalim (2012-08-12 20:19:42+00:00)
Title: Do not eliminate duplicate Set-Cookie headers

This pull request fixes a bug in merge_headers which does not account for Set-Cookies headers.

The first commit simply fixes the issue, improving the coverage of `merge_headers` and `response_merge_headers`.

The second commit fixes merge_headers to use `lists:reverse/1` instead of `++`. The tests for `response_merge_headers` added in the first commit continue passing after this commit, ensuring we don't have any regression.