Fix #2935: Copy current session object in copy_current_request_context (#2936)

Add session to RequestContext.copy()
This commit is contained in:
Dave Chevell 2018-11-04 14:32:24 +11:00 committed by David Lord
parent 7e714bd28b
commit e08bcf9f97
3 changed files with 22 additions and 6 deletions

View file

@ -9,6 +9,12 @@ Version 1.1
Unreleased
- :meth:`flask.RequestContext.copy` includes the current session
object in the request context copy. This prevents ``flask.session``
pointing to an out-of-date object. (`#2935`)
.. _#2935: https://github.com/pallets/flask/issues/2935
Version 1.0.3
-------------