Fix the handling of the end of a chunked request. (#2188)

* Fix the handling of the end of a chunked request.

* Avoid hardcoding final chunk header size.

* Add some unit tests for pipeline body reading

* Decode bytes for json serialization

Co-authored-by: L. Kärkkäinen <tronic@users.noreply.github.com>
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
This commit is contained in:
L. Kärkkäinen
2021-07-11 06:44:40 -04:00
committed by GitHub
parent 1dd0332e8b
commit 08a4b3013f
3 changed files with 92 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ requirements = [
]
tests_require = [
"sanic-testing>=0.6.0",
"sanic-testing>=0.7.0b1",
"pytest==5.2.1",
"coverage==5.3",
"gunicorn==20.0.4",