# HG changeset patch # User Dirkjan Ochtman # Date 2008-06-29 21:02:02 # Node ID dbb00e91c32779b5c2f14ecd78032ac8af47bbd8 # Parent 97e214dccaa9096ebcc8cc5583cd7d15b9df746f add an Accept header to the http client diff --git a/mercurial/httprepo.py b/mercurial/httprepo.py --- a/mercurial/httprepo.py +++ b/mercurial/httprepo.py @@ -268,6 +268,7 @@ class httprepository(repo.repository): # 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):