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.

Author song1st
Recipients song1st
Date 2017-02-08.10:18:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486549140.01.0.111970837226.issue29479@psf.upfronthosting.co.za>
In-reply-to
Content
When I tried to skip "ACCEPT-ENCODING" of header, I found the behavior was not right.
I think the issue is the following two "if" in _send_request of httplib.

    def _send_request(self, method, url, body, headers):
        # Honor explicitly requested Host: and Accept-Encoding: headers.
        header_names = dict.fromkeys([k.lower() for k in headers])
        skips = {}
        if 'host' in header_names:
            skips['skip_host'] = 1
        if 'accept-encoding' in header_names:
            skips['skip_accept_encoding'] = 1
History
Date User Action Args
2017-02-08 10:19:00song1stsetrecipients: + song1st
2017-02-08 10:19:00song1stsetmessageid: <1486549140.01.0.111970837226.issue29479@psf.upfronthosting.co.za>
2017-02-08 10:18:59song1stlinkissue29479 messages
2017-02-08 10:18:59song1stcreate