# HG changeset patch # User Augie Fackler # Date 2016-03-11 16:24:50 # Node ID 6f38ec428a191478451e27108c676e389ce0734d # Parent 945e9516b4350c65a31d744e6ecbdb7ccb2c6ee7 httppeer: do less splitting on httpheader value We only care about the first value split off, so only split off the first value. diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py --- a/mercurial/httppeer.py +++ b/mercurial/httppeer.py @@ -112,7 +112,7 @@ class httppeer(wireproto.wirepeer): if len(args) > 0: httpheader = self.capable('httpheader') if httpheader: - headersize = int(httpheader.split(',')[0]) + headersize = int(httpheader.split(',', 1)[0]) if headersize > 0: # The headers can typically carry more data than the URL. encargs = urllib.urlencode(sorted(args.items()))