From 10f8bf9503df15610a6770d53276d1f2898c7d1e Mon Sep 17 00:00:00 2001 From: dandds Date: Fri, 31 Jan 2020 06:18:54 -0500 Subject: [PATCH] Fix bug in setting Secure on session cookie. This fixes a bug I introduced with commit 6edc7b138b0745d0b3f9d99da76c445fe954c5a7 The value for SESSION_COOKIE_SECURE was being read in as a truthy string every time. In order for it to be interpreted correctly, we need to map it to a boolean. --- atst/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/atst/app.py b/atst/app.py index 29476ed8..05578827 100644 --- a/atst/app.py +++ b/atst/app.py @@ -193,6 +193,7 @@ def map_config(config): "CONTRACT_END_DATE": datetime.strptime( config.get("default", "CONTRACT_END_DATE"), "%Y-%m-%d" ).date(), + "SESSION_COOKIE_SECURE": config.getboolean("default", "SESSION_COOKIE_SECURE"), }