summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-09-03 19:24:24 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-09-03 19:24:24 (GMT)
commitd229b3ae048ca51d9f3865e1e9eaf83ba5a6c424 (patch)
tree5de3e8c5142669c558012e762759e75f3845304f /Lib/httplib.py
parent6e813188dbda129efc75d16ce912293adc229576 (diff)
downloadcpython-d229b3ae048ca51d9f3865e1e9eaf83ba5a6c424.zip
cpython-d229b3ae048ca51d9f3865e1e9eaf83ba5a6c424.tar.gz
cpython-d229b3ae048ca51d9f3865e1e9eaf83ba5a6c424.tar.bz2
SF bug [ 600488 ] Robustness tweak to httplib.py
If the transfer-encoding is unknown, ignore it. Suggested by Tom Emerson.
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r--Lib/httplib.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index e58a30a..b9dc6e9 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -304,9 +304,7 @@ class HTTPResponse:
# are we using the chunked-style of transfer encoding?
tr_enc = self.msg.getheader('transfer-encoding')
- if tr_enc:
- if tr_enc.lower() != 'chunked':
- raise UnknownTransferEncoding()
+ if tr_enc and tr_enc.lower() == "chunked":
self.chunked = 1
self.chunk_left = None
else: