Mercurial > public > mercurial-scm > hg-stable
diff mercurial/httprepo.py @ 14094:d10c6835497e
http: minor tweaks to long arg handling
x-arg -> x-hgarg
replace itertools.count(1)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 01 May 2011 03:51:04 -0500 |
parents | ce99d887585f |
children | cc9366a3751b |
line wrap: on
line diff
--- a/mercurial/httprepo.py Sun May 01 01:04:37 2011 +0800 +++ b/mercurial/httprepo.py Sun May 01 03:51:04 2011 -0500 @@ -85,7 +85,7 @@ if headersize > 0: # The headers can typically carry more data than the URL. encargs = urllib.urlencode(sorted(args.items())) - headerfmt = 'X-Arg-%s' + headerfmt = 'X-HgArg-%s' contentlen = headersize - len(headerfmt % '000' + ': \r\n') headernum = 0 for i in xrange(0, len(encargs), contentlen):