read1
and readline
of http.client.HTTPResponse
do not raise IncompleteRead
#115997
Labels
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
Unlike
http.client.HTTPResponse.read
,read1
andreadline
do not raiseIncompleteRead
when the content length is know and a connection is closed before everything has been read.FYI, these two methods have had a common issue in the past #113199.
CPython versions tested on:
3.8, 3.9, 3.10, 3.11, 3.12, 3.13, CPython main branch
Operating systems tested on:
Linux, macOS, Windows
Linked PRs
HTTPResponse.read1
andreadline
raiseIncompleteRead
#115998The text was updated successfully, but these errors were encountered: