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: httplib hardcodes Accept-Encoding
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: calvin, loewis
Priority: normal Keywords:

Created on 2003-10-28 13:38 by calvin, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
httplib_skip_headers.diff calvin, 2003-11-11 17:03 add skip_accept_encoding to HttpConnection.putrequest
Messages (5)
msg18783 - (view) Author: Bastian Kleineidam (calvin) Date: 2003-10-28 13:38
in httplib.py the request() method adds a hardcoded
Accept-Encoding header with the 'identity' value.
This should at least be optional, since I have several
programs supporting encodings like 'gzip' or 'deflate'
and I want to be able to specify my own Accept-Encoding
header.

I suggest adding (similar to skip_host) a
skip_accept_encoding optional argument.
msg18784 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-10-31 12:45
Logged In: YES 
user_id=21627

Can you provide a patch (including documentation changes)?
msg18785 - (view) Author: Bastian Kleineidam (calvin) Date: 2003-10-31 14:55
Logged In: YES 
user_id=9205

Yes, in a few days.
msg18786 - (view) Author: Bastian Kleineidam (calvin) Date: 2003-11-11 17:03
Logged In: YES 
user_id=9205

Here is a patch against CVS adding skip_accept_encoding and
documentation.
msg18787 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-11-19 19:52
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as

libhttplib.tex 1.36
httplib.py 1.82
NEWS 1.895
History
Date User Action Args
2022-04-11 14:56:00adminsetgithub: 39467
2003-10-28 13:38:13calvincreate