Fix SSLify test

This commit is contained in:
Noah 2015-12-31 04:18:28 +00:00
parent 4b6be02e5a
commit b36e764507
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ rophako:
# will do the following:
# - Send HTTP Strict-Transport-Security header
# - Use secure session cookies (SSL-only)
force_ssl: true
force_ssl: false
# Secret key used for session cookie signing. Make this long and hard to
# guess.

View File

@ -44,7 +44,7 @@ app.secret_key = bytes(Config.security.secret_key.encode("utf-8")) \
.decode(string_escape)
# Security?
if Config.security.force_ssl == "true":
if Config.security.force_ssl == True:
app.config['SESSION_COOKIE_SECURE'] = True
sslify = SSLify(app)

View File

@ -74,7 +74,7 @@ def edit_page(name, author, body, note, history=True):
# The new revision to be added.
rev = dict(
id=hashlib.md5(str(int(time.time()))).hexdigest(),
id=hashlib.md5(str(int(time.time())).encode("utf-8")).hexdigest(),
time=int(time.time()),
author=author,
body=body,