Skip to content

Commit 1ef9b5a

Browse files
Fix error.
1 parent 4559a5e commit 1ef9b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/http/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ def _safe_read(self, amt):
655655
# This is a geometric increase in read size (never more than
656656
# doubling out the current length of data per loop iteration).
657657
delta = min(cursize, amt - cursize)
658-
data += self.fp.read(cursize)
658+
data += self.fp.read(delta)
659659
cursize += delta
660660
return data
661661

0 commit comments

Comments
 (0)