summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make utility function private: _get_headersBB-4Marc Abramowitz2015-04-301-4/+9
|
* Make get_headers default to Python 3; fallback to Python 2Marc Abramowitz2015-04-301-4/+4
| | | | as suggested by @haypo at https://bitbucket.org/ianb/paste/pull-request/22/fix-improper-commas-in-request-headers-in/diff#comment-6583636
* Make get all values of a header work on both Python 2 and 3Marc Abramowitz2015-04-281-1/+9
|
* tests/test_httpserver.py: Add test_environ_with_multiple_valuesMarc Abramowitz2015-04-281-0/+16
| | | | Tests when there are two `Host:` headers present.
* tests/test_httpserver.py: Use `email` module instead of `mimetools`Marc Abramowitz2015-04-281-2/+2
| | | | because `mimetools` is deprecated and doesn't work in Python 3.
* Fix improper commas in request headers in wsgi_environMarc Abramowitz2015-04-271-1/+1
| | | | | | Revert from using `get` to `getheaders` method. fixes #4
* Add tests/test_httpserver.pyMarc Abramowitz2015-04-27230-0/+41353
which contains a test for the issue in BB-4, where the WSGI environment has strings with commas in them that don't belong. See issue #4.