changeset 28483:6f38ec428a19

httppeer: do less splitting on httpheader value We only care about the first value split off, so only split off the first value.
author Augie Fackler <augie@google.com>
date Fri, 11 Mar 2016 11:24:50 -0500
parents 945e9516b435
children da6f713ab480
files mercurial/httppeer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/httppeer.py	Sat Feb 27 21:17:37 2016 +0900
+++ b/mercurial/httppeer.py	Fri Mar 11 11:24:50 2016 -0500
@@ -112,7 +112,7 @@
         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()))