mercurial/httppeer.py
changeset 33499 0407a51b9d8c
parent 32086 b59a292d0a53
child 33727 fda0867cfe03
--- a/mercurial/httppeer.py	Tue Jul 11 08:52:55 2017 -0700
+++ b/mercurial/httppeer.py	Fri Jul 14 14:22:40 2017 -0700
@@ -181,7 +181,7 @@
             size = data.length
         elif data is not None:
             size = len(data)
-        if size and self.ui.configbool('ui', 'usehttp2', False):
+        if size and self.ui.configbool('ui', 'usehttp2'):
             headers['Expect'] = '100-Continue'
             headers['X-HgHttp2'] = '1'
         if data is not None and 'Content-Type' not in headers: