[issue2756] urllib2 add_header fails with existing unredirected_header

Martin McNickle report at bugs.python.org
Tue May 6 13:05:57 CEST 2008


Martin McNickle <mmcnickle at gmail.com> added the comment:

I decided that the user should have full control over the headers sent.
 Any call to add_header() or add_redirected_header() will now check if a
header with that same name has been set in the Request before (in both
the header and the unredirected header dictionaries), and if so
overwrite it.

The tests run fine with the patch installed, and also included is a
patch for the urllib2 documentation.

----------
keywords: +patch
Added file: http://bugs.python.org/file10200/add_header_complete.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2756>
__________________________________


More information about the Python-bugs-list mailing list