unlocking session in download
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.1-alpha.2+timestamp.2013.02.05.10.43.24
|
Version 2.4.1-alpha.2+timestamp.2013.02.05.13.23.12
|
||||||
|
|||||||
+3
-1
@@ -385,6 +385,8 @@ class Response(Storage):
|
|||||||
downloads from http://..../download/filename
|
downloads from http://..../download/filename
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
current.session.forget(current.response)
|
||||||
|
|
||||||
if not request.args:
|
if not request.args:
|
||||||
raise HTTP(404)
|
raise HTTP(404)
|
||||||
name = request.args[-1]
|
name = request.args[-1]
|
||||||
@@ -689,7 +691,7 @@ class Session(Storage):
|
|||||||
|
|
||||||
def forget(self, response=None):
|
def forget(self, response=None):
|
||||||
self._close(response)
|
self._close(response)
|
||||||
self._forget = True
|
self._forget = True
|
||||||
|
|
||||||
def _try_store_in_cookie(self, request, response):
|
def _try_store_in_cookie(self, request, response):
|
||||||
if response.session_storage_type != 'cookie':
|
if response.session_storage_type != 'cookie':
|
||||||
|
|||||||
Reference in New Issue
Block a user