[Patches] [ python-Patches-600488 ] Robustness tweak to httplib.py

noreply@sourceforge.net noreply@sourceforge.net
Tue, 03 Sep 2002 09:53:49 -0700


Patches item #600488, was opened at 2002-08-26 17:57
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=600488&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Tom Emerson (tree)
>Assigned to: Jeremy Hylton (jhylton)
Summary: Robustness tweak to httplib.py

Initial Comment:
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.


----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-09-03 12:53

Message:
Logged In: YES 
user_id=6380

Jeremy, this looks simple enough to check it in. Do you see
any reason why I shouldn't?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=600488&group_id=5470