mercurial/httppeer.py
changeset 37556 b77aa48ba690
parent 37555 930c433eb311
child 37558 8a73132214a3
--- a/mercurial/httppeer.py	Tue Apr 10 16:53:44 2018 -0700
+++ b/mercurial/httppeer.py	Tue Apr 10 18:13:28 2018 -0700
@@ -210,7 +210,9 @@
     # Tell the server we accept application/mercurial-0.2 and multiple
     # compression formats if the server is capable of emitting those
     # payloads.
-    protoparams = {'partial-pull'}
+    # Note: Keep this set empty by default, as client advertisement of
+    # protocol parameters should only occur after the handshake.
+    protoparams = set()
 
     mediatypes = set()
     if caps is not None:
@@ -219,6 +221,8 @@
             protoparams.add('0.1')
             mediatypes = set(mt.split(','))
 
+        protoparams.add('partial-pull')
+
     if '0.2tx' in mediatypes:
         protoparams.add('0.2')