diff options
author | bmw <bmw@users.noreply.github.com> | 2015-12-16 23:47:30 +0300 |
---|---|---|
committer | bmw <bmw@users.noreply.github.com> | 2015-12-16 23:47:30 +0300 |
commit | f387fe80a835b1857a57d8ed0b3f8205bedb210f (patch) | |
tree | 8be7efbfe6cbf457f2c4a0c3c79b9864030cd62d /letsencrypt/client.py | |
parent | 55cc72fab7790fccbc55a7dec99380a66dca3cc8 (diff) | |
parent | 04fabf1408165b4d7a4fa7397f900ff6ed0ae590 (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.py | 7 |
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") |