kennethreitz/httpbin — pull request #172 by msabramo (2014-11-29 14:21:14+00:00)
Title: GH-125: Support multiple headers with same key

Fixes: GH-125

```
❯ py.test test_httpbin.py -v -k test_response
============================================================================= test session starts ==============================================================================
platform darwin -- Python 2.7.6 -- py-1.4.25 -- pytest-2.5.2 -- /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
plugins: cov
collected 26 items

test_httpbin.py:33: HttpbinTestCase.test_response_headers_multi PASSED
test_httpbin.py:27: HttpbinTestCase.test_response_headers_simple PASSED

=================================================================== 24 tests deselected by '-ktest_response' ===================================================================
=================================================================== 2 passed, 24 deselected in 0.15 seconds ====================================================================
```

```
❯ http 'localhost:8080/response-headers?animal=dog&animal=cat'
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Animal: dog
Animal: cat
Content-Length: 110
Content-Type: application/json
Date: Sat, 29 Nov 2014 14:20:49 GMT
Server: waitress

{
"Content-Length": "110",
"Content-Type": "application/json",
"animal": [
"dog",
"cat"
]
}
```