Rev 4780: Note that User-Agent is lost (we use the bzrlib one though). in file:///home/vila/src/bzr/bugs/186920-lp-proxy/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Oct 30 15:41:57 GMT 2009
At file:///home/vila/src/bzr/bugs/186920-lp-proxy/
------------------------------------------------------------
revno: 4780
revision-id: v.ladeuil+lp at free.fr-20091030154157-g43t2go85qpmhcv0
parent: v.ladeuil+lp at free.fr-20091030151532-ll4seawr2q7zo1py
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 186920-lp-proxy
timestamp: Fri 2009-10-30 16:41:57 +0100
message:
Note that User-Agent is lost (we use the bzrlib one though).
* bzrlib/plugins/launchpad/lp_registration.py:
(Transport.request): User-Agent is overriden by _urllib2_wrappers,
don't pretend we can set it.
-------------- next part --------------
=== modified file 'bzrlib/plugins/launchpad/lp_registration.py'
--- a/bzrlib/plugins/launchpad/lp_registration.py 2009-10-30 14:44:52 +0000
+++ b/bzrlib/plugins/launchpad/lp_registration.py 2009-10-30 15:41:57 +0000
@@ -66,7 +66,8 @@
self.verbose = verbose
url = self._scheme + "://" + host + handler
request = _urllib2_wrappers.Request("POST", url, request_body)
- request.add_header("User-Agent", self.user_agent)
+ # FIXME: _urllib2_wrappers will override user-agent with its own
+ # request.add_header("User-Agent", self.user_agent)
request.add_header("Content-Type", "text/xml")
response = self._opener.open(request)
More information about the bazaar-commits
mailing list