Rev 4780: Set the Host request header for cosmetic reasons. in file:///home/vila/src/bzr/bugs/186920-lp-proxy/

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Oct 30 15:23:14 GMT 2009


At file:///home/vila/src/bzr/bugs/186920-lp-proxy/

------------------------------------------------------------
revno: 4780
revision-id: v.ladeuil+lp at free.fr-20091030152313-rcsupusi3qf83ogp
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:23:13 +0100
message:
  Set the Host request header for cosmetic reasons.
  
  * bzrlib/plugins/launchpad/lp_registration.py:
  (Transport.request): Host is not automatically set by
  _urllib2_wrappers.
-------------- 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:23:13 +0000
@@ -66,6 +66,7 @@
         self.verbose = verbose
         url = self._scheme + "://" + host + handler
         request = _urllib2_wrappers.Request("POST", url, request_body)
+        request.add_header("Host", host)
         request.add_header("User-Agent", self.user_agent)
         request.add_header("Content-Type", "text/xml")
 



More information about the bazaar-commits mailing list