Antoine Pitrou added the comment: I'm not sure this is a desirable feature in the stdlib, but regardless, your solution isn't very scalable: a new argument will have to be added each time someone wants to avoid sending a given header.
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. ---------- nosy: +orsenthil, pitrou _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16830> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com