]> git.ipfire.org Git - thirdparty/httpx.git/commit
Fixes for LineDecoding (#1075)
authorTom Christie <tom@tomchristie.com>
Thu, 23 Jul 2020 08:45:35 +0000 (09:45 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2020 08:45:35 +0000 (09:45 +0100)
commit20f4911e805d9cf28b915cc2c7fbae8f27dc2c49
tree667693b1ced22ed881886503ca4a26dea7ee9f55
parentbd339212de277a8b8a1b3028147854fc0e7e6353
Fixes for LineDecoding (#1075)

* Fixes #1033 - Ensure that text that spans 3 invocations before newline is handled - don't clobber the buffer between invocations that haven't seen any lines.
This seems like a one character fix + the test.

* Update the tests.

* Undo formatting/indentation.

* Update long comment.

* Fix trailing cr line decoding

Co-authored-by: Sheridan C Rawlins <scr@verizonmedia.com>
httpx/_decoders.py
tests/test_decoders.py