comment and simplify things

This commit is contained in:
sagi
2015-11-16 20:41:39 +00:00
parent 1098126b7b
commit 17ea7bb316
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -913,12 +913,12 @@ def prepare_and_parse_args(plugins, args):
"security", "--hsts", action="store_true",
help="Add the Strict-Transport-Security header to every HTTP response."
" Forcing browser to use always use SSL for the domain."
" Defends against SSL Stripping.", dest="hsts")
" Defends against SSL Stripping.", dest="hsts", default=False)
helpful.add(
"security", "--uir", action="store_true",
help="Add the \"Content-Security-Policy: upgrade-insecure-requests\""
" header to every HTTP response. Forcing the browser to use"
" https:// for every http:// resource.", dest="uir")
" https:// for every http:// resource.", dest="uir", default=False)
helpful.add(
"security", "--strict-permissions", action="store_true",
help="Require that all configuration files are owned by the current "
+3
View File
@@ -410,6 +410,9 @@ class Client(object):
:param options: options to enhancement, e.g. Strict-Transport-Security
:type str
:raises .errors.Error: if no installer is specified in the
client.
"""
msg = ("We were unable to set up enhancement %s for your server, "
"however, we successfully installed your certificate."