summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2015-04-24 08:49:10 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2015-04-24 12:16:22 -0500
commit23060d67836f71a838e68d6f3889baacf6a530c9 (patch)
tree42c9a2df44d39c471a5628152d087f9f06810305
parent2a6d4e2b570d7f809baea4ea4cb007aed5202767 (diff)
downloadurllib3-23060d67836f71a838e68d6f3889baacf6a530c9.tar.gz
Do not call join with a bytes object
line is no longer stored as a list. Since it will now always be a bytes object we cannot call `''.join(line)` since it will iterate over the bytes object and try to concatenate integers which are not valid to be passed to str.join.
-rw-r--r--urllib3/response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/urllib3/response.py b/urllib3/response.py
index 24400b38..191dc558 100644
--- a/urllib3/response.py
+++ b/urllib3/response.py
@@ -401,7 +401,7 @@ class HTTPResponse(io.IOBase):
except ValueError:
# Invalid chunked protocol response, abort.
self.close()
- raise httplib.IncompleteRead(''.join(line))
+ raise httplib.IncompleteRead(line)
def _handle_chunk(self, amt):
returned_chunk = None