mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
httppeer: do less splitting on httpheader value
We only care about the first value split off, so only split off the first value.
This commit is contained in:
parent
88535fc17d
commit
f7dec33abe
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user