summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2015-04-24 12:15:56 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2015-04-24 12:17:35 -0500
commit3f36b3f8ce593fc16d5cd14d3cc5389f0e30d489 (patch)
treeb33f8d24178270a9324f49eaada09f17779a4b35
parentbdabaafdb0ad707aff42a79c03842b6a090da485 (diff)
downloadurllib3-3f36b3f8ce593fc16d5cd14d3cc5389f0e30d489.tar.gz
Do not convert the transfer-encodings to a set
-rw-r--r--urllib3/response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/urllib3/response.py b/urllib3/response.py
index 88d823dc..25d3d555 100644
--- a/urllib3/response.py
+++ b/urllib3/response.py
@@ -127,7 +127,7 @@ class HTTPResponse(io.IOBase):
self.chunked = False
self.chunk_left = None
tr_enc = self.headers.get('transfer-encoding', '').lower()
- if "chunked" in set(tr_enc.split(", ")):
+ if "chunked" in tr_enc.split(", "):
self.chunked = True
# We certainly don't want to preload content when the response is chunked.