[Jifty-commit] r1813 - jifty/trunk/lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Aug 14 11:22:14 EDT 2006
Author: clkao
Date: Mon Aug 14 11:21:59 2006
New Revision: 1813
Modified:
jifty/trunk/lib/Jifty/Handler.pm
Log:
Don't bother with session when serving static files.
Modified: jifty/trunk/lib/Jifty/Handler.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Handler.pm (original)
+++ jifty/trunk/lib/Jifty/Handler.pm Mon Aug 14 11:21:59 2006
@@ -186,10 +186,8 @@
$self->stash({});
local $HTML::Mason::Commands::JiftyWeb = Jifty::Web->new();
- Jifty->web->setup_session;
Jifty->web->request( Jifty::Request->new()->fill( $self->cgi ) );
Jifty->web->response( Jifty::Response->new );
- Jifty->web->session->set_cookie;
Jifty->api->reset;
$_->new_request for Jifty->plugins;
@@ -199,10 +197,15 @@
= $self->static_handler->handle_request( Jifty->web->request->path )
if ( Jifty->config->framework('Web')->{'ServeStaticFiles'} );
+ Jifty->web->setup_session unless $sent_response;
+
# Return from the continuation if need be
Jifty->web->request->return_from_continuation;
- $self->dispatcher->handle_request() unless ($sent_response);
+ unless ($sent_response) {
+ Jifty->web->session->set_cookie;
+ $self->dispatcher->handle_request()
+ }
$self->cleanup_request();
More information about the Jifty-commit
mailing list