From 1ffd110d058a93b44e282550cdcca14a91d7537e Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 29 Aug 2013 08:09:56 -0500 Subject: [PATCH] bypass all session logic when application does not exist --- VERSION | 2 +- gluon/main.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index de05d58c..2268dffd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.08.28.09.56.28 +Version 2.6.0-development+timestamp.2013.08.29.08.09.00 diff --git a/gluon/main.py b/gluon/main.py index 62af77c7..576bb8be 100644 --- a/gluon/main.py +++ b/gluon/main.py @@ -454,8 +454,10 @@ def wsgibase(environ, responder): serve_controller(request, response, session) except HTTP, http_response: - - if static_file: + + # if this is a static file + # or the application does not exist + if static_file or not hasattr(current,'request'): return http_response.to(responder, env=env) if request.body: