APPLICATION_ROOT defaults to '/'
This commit is contained in:
parent
60feecc26c
commit
4a53840df0
4 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue