This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Robustness tweak to httplib.py
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jhylton Nosy List: gvanrossum, jhylton, tree
Priority: normal Keywords: patch

Created on 2002-08-26 21:57 by tree, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
httplib.py.patch tree, 2002-08-26 21:57 Ignore invalid Transfer Encodings in Response header
Messages (3)
msg41035 - (view) Author: Tom Emerson (tree) Date: 2002-08-26 21:57
Python 2.2.1, FreeBSD 4.4-STABLE

httplib.py raises UnknownTransferEncoding if the HTTP
response's Transfer-Encoding header is anything except
'chunked'. Some servers return completely bogus values
in this header for otherwise valid results. This patch
causes unknown (i.e., non-chunked) transfer encodings
to be ignored.

This appears to be the behavior of most user-agents
I've looked at.
msg41036 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-09-03 16:53
Logged In: YES 
user_id=6380

Jeremy, this looks simple enough to check it in. Do you see
any reason why I shouldn't?
msg41037 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2002-09-03 19:24
Logged In: YES 
user_id=31392

Fixed in rev 1.65 of httplib.py
History
Date User Action Args
2022-04-10 16:05:37adminsetgithub: 37092
2002-08-26 21:57:24treecreate