diff mercurial/hgweb/hgwebdir_mod.py @ 25488:89ce95f907bd

hgewb: disable progress when serving (issue4582) Before this patch, progress bar could be displayed when serving, creating hypothetical problems.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sun, 07 Jun 2015 17:14:17 -0700
parents d0c7ffc4c8bc
children 328739ea70c3
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Tue Jun 09 12:57:57 2015 -0400
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun Jun 07 17:14:17 2015 -0700
@@ -98,6 +98,9 @@
             u = ui.ui()
             u.setconfig('ui', 'report_untrusted', 'off', 'hgwebdir')
             u.setconfig('ui', 'nontty', 'true', 'hgwebdir')
+            # displaying bundling progress bar while serving feels wrong and may
+            # break some wsgi implementations.
+            u.setconfig('progress', 'disable', 'true', 'hgweb')
 
         if not isinstance(self.conf, (dict, list, tuple)):
             map = {'paths': 'hgweb-paths'}