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

login
register
mail settings
Submitter phabricator
Date Oct. 15, 2017, 1:27 p.m.
Message ID <f52892b2d6768ba82c0bb438b8a4f985@localhost.localdomain>
Download mbox | patch
Permalink /patch/24940/
State Not Applicable
Headers show

Comments

phabricator - Oct. 15, 2017, 1:27 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG01206460897a: server: indent block that&#039;s about to get conditionalized (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1083?vs=2763&id=2773

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

AFFECTED FILES
  mercurial/hgweb/server.py

CHANGE DETAILS




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

Patch

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()