Mercurial > hg
changeset 34718:01206460897a
server: indent block that's about to get conditionalized
Differential Revision: https://phab.mercurial-scm.org/D1083
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 14 Oct 2017 15:53:36 -0400 |
parents | 06b52671552b |
children | 6e1b05692b2c |
files | mercurial/hgweb/server.py |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/server.py Sat Oct 14 18:41:20 2017 +0900 +++ b/mercurial/hgweb/server.py Sat Oct 14 15:53:36 2017 -0400 @@ -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()