diff options
author | Ian Cordasco <graffatcolmingov@gmail.com> | 2015-04-24 12:15:56 -0500 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2015-04-24 12:17:35 -0500 |
commit | 3f36b3f8ce593fc16d5cd14d3cc5389f0e30d489 (patch) | |
tree | b33f8d24178270a9324f49eaada09f17779a4b35 | |
parent | bdabaafdb0ad707aff42a79c03842b6a090da485 (diff) | |
download | urllib3-3f36b3f8ce593fc16d5cd14d3cc5389f0e30d489.tar.gz |
Do not convert the transfer-encodings to a set
-rw-r--r-- | urllib3/response.py | 2 |
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. |