Skip to content
Myr

Merge pull request #1242 from Winnetou/patch-4

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Minor typos fixed

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 6fcc2ae, 5c75579 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:flask/sessions.py+2 added-2 removed
124 unmodified lines
125 but fail on setting.126 """127128 def _fail(self, *args, **kwargs):129 raise RuntimeError('the session is unavailable because no secret '129 raise RuntimeError('The session is unavailable because no secret '130 'key was set. Set the secret_key on the '131 'application to something unique and secret.')132 __setitem__ = __delitem__ = clear = pop = popitem = \133 update = setdefault = _fail
70 unmodified lines
204 """205 if app.config['SESSION_COOKIE_DOMAIN'] is not None:206 return app.config['SESSION_COOKIE_DOMAIN']207 if app.config['SERVER_NAME'] is not None:208 # chop of the port which is usually not supported by browsers208 # chop off the port which is usually not supported by browsers209 rv = '.' + app.config['SERVER_NAME'].rsplit(':', 1)[0]210211 # Google chrome does not like cookies set to .localhost, so212 # we just go with no domain then. Flask documents anyways that
153 unmodified lines