From b75354add00bca1ff5bb074922e1d4893a2c10dd Mon Sep 17 00:00:00 2001 From: sagi Date: Mon, 23 Nov 2015 20:13:08 +0000 Subject: [PATCH] change verify_no_http_header to verify_no_matching_http_header --- letsencrypt-apache/letsencrypt_apache/configurator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letsencrypt-apache/letsencrypt_apache/configurator.py b/letsencrypt-apache/letsencrypt_apache/configurator.py index 65e759061..e5e4edc80 100644 --- a/letsencrypt-apache/letsencrypt_apache/configurator.py +++ b/letsencrypt-apache/letsencrypt_apache/configurator.py @@ -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.