changeset 6787:dbb00e91c327

add an Accept header to the http client
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Sun, 29 Jun 2008 23:02:02 +0200
parents 97e214dccaa9
children 88a1bcc5c6a7
files mercurial/httprepo.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):