# HG changeset patch # User Pierre-Yves David # Date 2019-04-23 19:55:42 # Node ID 5b9cf3002ff51c39a9e2dcd458b13c8f5bc8be96 # Parent eb68fd841984af331910b72bd6169a3d7fe735ff httppeer: make sure we limit argument for older server not supporting batch Most commands will still have some argument restriction when using 'GET' method instead of batching through POST. diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py --- a/mercurial/httppeer.py +++ b/mercurial/httppeer.py @@ -382,7 +382,9 @@ class httppeer(wireprotov1peer.wirepeer) self._path = path self._url = url self._caps = caps - self.limitedarguments = caps is not None and 'httppostargs' not in caps + self.limitedarguments = False + if caps is None or 'batch' not in caps or 'httppostargs' not in caps: + self.limitedarguments = True self._urlopener = opener self._requestbuilder = requestbuilder