mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 16:14:44 +02:00
Fix a couple nits
This commit is contained in:
@@ -740,10 +740,8 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
if target[0] in ("'", '"') and target[0] == target[-1]:
|
if target[0] in ("'", '"') and target[0] == target[-1]:
|
||||||
target = target[1:-1]
|
target = target[1:-1]
|
||||||
|
|
||||||
if target.startswith("https://"):
|
# Sift line if it redirects the request to a HTTPS site
|
||||||
return True
|
return target.startswith("https://")
|
||||||
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _copy_create_ssl_vhost_skeleton(self, avail_fp, ssl_fp):
|
def _copy_create_ssl_vhost_skeleton(self, avail_fp, ssl_fp):
|
||||||
"""Copies over existing Vhost with IfModule mod_ssl.c> skeleton.
|
"""Copies over existing Vhost with IfModule mod_ssl.c> skeleton.
|
||||||
@@ -771,7 +769,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
"were disabled on your HTTPS site,\n"
|
"were disabled on your HTTPS site,\n"
|
||||||
"# because they have the potential to "
|
"# because they have the potential to "
|
||||||
"create redirection loops.\n")
|
"create redirection loops.\n")
|
||||||
sift = True
|
sift = True
|
||||||
new_file.write("# " + line)
|
new_file.write("# " + line)
|
||||||
else:
|
else:
|
||||||
new_file.write(line)
|
new_file.write(line)
|
||||||
|
|||||||
Reference in New Issue
Block a user