add an Accept header to the http client
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Sun, 29 Jun 2008 23:02:02 +0200
changeset 6787 dbb00e91c327
parent 6786 97e214dccaa9
child 6788 88a1bcc5c6a7
add an Accept header to the http client
mercurial/httprepo.py
--- a/mercurial/httprepo.py	Sun Jun 29 22:47:57 2008 +0200
+++ b/mercurial/httprepo.py	Sun Jun 29 23:02:02 2008 +0200
@@ -268,6 +268,7 @@
 
         # 1.0 here is the _protocol_ version
         opener.addheaders = [('User-agent', 'mercurial/proto-1.0')]
+        opener.addheaders.append(('Accept', 'application/mercurial-0.1'))
         urllib2.install_opener(opener)
 
     def url(self):