APPLICATION_ROOT defaults to '/'

This commit is contained in:
David Lord 2017-05-28 14:08:53 -07:00
parent 60feecc26c
commit 4a53840df0
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
4 changed files with 9 additions and 6 deletions

View file

@ -288,8 +288,8 @@ class SessionInterface(object):
config var if it's set, and falls back to ``APPLICATION_ROOT`` or
uses ``/`` if it's ``None``.
"""
return app.config['SESSION_COOKIE_PATH'] or \
app.config['APPLICATION_ROOT'] or '/'
return app.config['SESSION_COOKIE_PATH'] \
or app.config['APPLICATION_ROOT']
def get_cookie_httponly(self, app):
"""Returns True if the session cookie should be httponly. This