##// END OF EJS Templates
Set the user agent for httprepo communication
Matt Mackall -
r1359:51ac9a79 default
parent child Browse files
Show More
@@ -59,6 +59,8 b' class httprepository(remoterepository):'
59 authinfo = urllib2.ProxyBasicAuthHandler(passmgr)
59 authinfo = urllib2.ProxyBasicAuthHandler(passmgr)
60
60
61 opener = urllib2.build_opener(proxy_handler, authinfo)
61 opener = urllib2.build_opener(proxy_handler, authinfo)
62 # 1.0 here is the _protocol_ version
63 opener.addheaders = [('User-agent', 'mercurial/proto-1.0')]
62 urllib2.install_opener(opener)
64 urllib2.install_opener(opener)
63
65
64 def dev(self):
66 def dev(self):
General Comments 0
You need to be logged in to leave comments. Login now