[Patches] [ python-Patches-599836 ] Bugfix for urllib2.py
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 25 Aug 2002 00:25:22 -0700
Patches item #599836, was opened at 2002-08-25 03:25
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=599836&group_id=5470
Category: Library (Lib)
Group: Python 2.2.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Fincher (jemfinch)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bugfix for urllib2.py
Initial Comment:
OpenerDirector has a default User-agent header. That
wouldn't be a problem, except that
AbstractHTTPHandler uses the headers in
OpenerDirector.addheaders *after* a Request has been
instantiated, thus making that default override whatever
headers were given to Request. This patch checks to
make sure a header isn't already in a Request before
adding the OpenerDirector's headers.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=599836&group_id=5470