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 pitrou
Recipients kanzure, orsenthil, pitrou
Date 2013-01-01.18:40:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357065486.3335.9.camel@localhost.localdomain>
In-reply-to <1357065011.61.0.0713056005716.issue16830@psf.upfronthosting.co.za>
Content
> On Tue, Jan 1, 2013 at 5:41 AM, Antoine Pitrou wrote:
> > Another possibility would be to allow passing None in values of the
> `headers` dict, in which case the given header wouldn't be send at
> all.
> 
> I agree that your solution is more scaling-friendly than the patch I
> originally submitted. But from another perspective, consider how alien
> it is to have to explicitly add keys set to None in the headers to get
> desired behavior.

Well, that is not a common need, is it?
That said, we could indeed have a separate argument "omit_headers"
listing the headers that we don't want to send.
History
Date User Action Args
2013-01-01 18:40:11pitrousetrecipients: + pitrou, orsenthil, kanzure
2013-01-01 18:40:10pitroulinkissue16830 messages
2013-01-01 18:40:10pitroucreate