unlocking session in download

This commit is contained in:
Massimo
2013-02-05 13:23:51 -06:00
parent 409495cc70
commit a7c6268d2c
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -385,6 +385,8 @@ class Response(Storage):
downloads from http://..../download/filename
"""
current.session.forget(current.response)
if not request.args:
raise HTTP(404)
name = request.args[-1]
@@ -689,7 +691,7 @@ class Session(Storage):
def forget(self, response=None):
self._close(response)
self._forget = True
self._forget = True
def _try_store_in_cookie(self, request, response):
if response.session_storage_type != 'cookie':