D1083: server: indent block that's about to get conditionalized

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Sun Oct 15 04:57:40 UTC 2017


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1083

AFFECTED FILES
  mercurial/hgweb/server.py

CHANGE DETAILS

diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -130,11 +130,12 @@
         if query:
             env[r'QUERY_STRING'] = query
 
-        if self.headers.typeheader is None:
-            env[r'CONTENT_TYPE'] = self.headers.type
-        else:
-            env[r'CONTENT_TYPE'] = self.headers.typeheader
-        length = self.headers.getheader('content-length')
+        if True:
+            if self.headers.typeheader is None:
+                env[r'CONTENT_TYPE'] = self.headers.type
+            else:
+                env[r'CONTENT_TYPE'] = self.headers.typeheader
+            length = self.headers.getheader('content-length')
         if length:
             env[r'CONTENT_LENGTH'] = length
         for header in [h for h in self.headers.keys()



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list