]> git.ipfire.org Git - thirdparty/httpx.git/commit
Fix support for generator-based WSGI apps (#887)
authorEd Singleton <singletoned@gmail.com>
Sun, 29 Mar 2020 11:13:01 +0000 (12:13 +0100)
committerGitHub <noreply@github.com>
Sun, 29 Mar 2020 11:13:01 +0000 (13:13 +0200)
commit94323f98ac812031dcf0bfecf6227beb2afd9c41
tree6120001579a601164fee620812c74aec4270f5c0
parent1c9b852783f065db1b495b587c1c986246355198
Fix support for generator-based WSGI apps (#887)

* Handle generator WSGI app

* Lint code

* Add type annotations

* Add more tests

* Refactor test to use application_factory

* Remove content length as it's misleading

* Add test for WSGI generator

* Add test for empty generator

* Remove previous tests

* Move docstring to a comment

* Fix whitespace

* Fix name of function

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update tests/test_wsgi.py

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update tests/test_wsgi.py

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update httpx/_dispatch/wsgi.py

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
httpx/_dispatch/wsgi.py
tests/test_wsgi.py