Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbmw <bmw@users.noreply.github.com>2015-12-16 23:47:30 +0300
committerbmw <bmw@users.noreply.github.com>2015-12-16 23:47:30 +0300
commitf387fe80a835b1857a57d8ed0b3f8205bedb210f (patch)
tree8be7efbfe6cbf457f2c4a0c3c79b9864030cd62d /letsencrypt/client.py
parent55cc72fab7790fccbc55a7dec99380a66dca3cc8 (diff)
parent04fabf1408165b4d7a4fa7397f900ff6ed0ae590 (diff)
Merge pull request #1913 from xgin/check-supported-enhancements
Check an enhancement is supported before applying (fixes #1432)
Diffstat (limited to 'letsencrypt/client.py')
-rw-r--r--letsencrypt/client.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/letsencrypt/client.py b/letsencrypt/client.py
index f7010e09d..080ee7991 100644
--- a/letsencrypt/client.py
+++ b/letsencrypt/client.py
@@ -407,9 +407,10 @@ class Client(object):
logger.warning("No config is specified.")
raise errors.Error("No config available")
- redirect = config.redirect
- hsts = config.hsts
- uir = config.uir # Upgrade Insecure Requests
+ supported = self.installer.supported_enhancements()
+ redirect = config.redirect if "redirect" in supported else False
+ hsts = config.hsts if "ensure-http-header" in supported else False
+ uir = config.uir if "ensure-http-header" in supported else False
if redirect is None:
redirect = enhancements.ask("redirect")