mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
change verify_no_http_header to verify_no_matching_http_header
This commit is contained in:
@@ -755,7 +755,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
self.enable_mod("headers")
|
||||
|
||||
# Check if selected header is already set
|
||||
self._verify_no_http_header(ssl_vhost, header_substring)
|
||||
self._verify_no_matching_http_header(ssl_vhost, header_substring)
|
||||
|
||||
# Add directives to server
|
||||
self.parser.add_dir(ssl_vhost.path, "Header",
|
||||
@@ -768,7 +768,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
logger.info("Adding %s header to ssl vhost in %s", header_substring,
|
||||
ssl_vhost.filep)
|
||||
|
||||
def _verify_no_http_header(self, ssl_vhost, header_substring):
|
||||
def _verify_no_matching_http_header(self, ssl_vhost, header_substring):
|
||||
"""Checks to see if an there is an existing Header directive that
|
||||
contains the string header_substring.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user