1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-27 19:42:53 +03:00

Fix spacing of nginx redirect blocks

This commit is contained in:
Peter Eckersley
2016-07-27 16:00:43 -07:00
parent 94ea424638
commit 2feeb50109

View File

@@ -401,8 +401,8 @@ class NginxConfigurator(common.Plugin):
:type unused_options: Not Available
"""
redirect_block = [[
['if', '($scheme != "https")'],
[['return', '301 https://$host$request_uri']]
['\n', 'if', ' ', '($scheme != "https")'],
[['\n ', 'return', ' ', '301 https://$host$request_uri']]
]]
self.parser.add_server_directives(
vhost.filep, vhost.names, redirect_block, replace=False)