Extra newlines & spacing

This commit is contained in:
Peter Eckersley
2016-07-27 16:29:30 -07:00
parent 2feeb50109
commit d55580025f
+3 -2
View File
@@ -402,8 +402,9 @@ class NginxConfigurator(common.Plugin):
"""
redirect_block = [[
['\n ', 'if', ' ', '($scheme != "https") '],
[['\n ', 'return', ' ', '301 https://$host$request_uri']]
]]
[['\n ', 'return', ' ', '301 https://$host$request_uri'],
'\n ']
], ['\n']]
self.parser.add_server_directives(
vhost.filep, vhost.names, redirect_block, replace=False)
logger.info("Redirecting all traffic to ssl in %s", vhost.filep)