mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
Fix for bug 1148: str/bytes issue in httplib's _safe_read().
This commit is contained in:
parent
138bcb569e
commit
a00f123706
2 changed files with 2 additions and 2 deletions
|
@ -624,7 +624,7 @@ class HTTPResponse:
|
|||
raise IncompleteRead(s)
|
||||
s.append(chunk)
|
||||
amt -= len(chunk)
|
||||
return "".join(s)
|
||||
return b"".join(s)
|
||||
|
||||
def getheader(self, name, default=None):
|
||||
if self.msg is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue