From 7a58fcffcd6f79106cce04f4e5f73e0181439f73 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Tue, 24 Aug 2010 15:49:50 -0500 Subject: [PATCH] Do not close the session ourselves when 304 Only WebGUI.pm and WebGUI::Middleware::Session should ever close the session during a normal request cycle. This is because of the possibility of streaming content. --- lib/WebGUI/Content/Asset.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/WebGUI/Content/Asset.pm b/lib/WebGUI/Content/Asset.pm index c136a23c6..59163ab5b 100644 --- a/lib/WebGUI/Content/Asset.pm +++ b/lib/WebGUI/Content/Asset.pm @@ -72,7 +72,6 @@ sub dispatch { && !$session->http->ifModifiedSince($asset->getContentLastModified, $session->setting->get('maxCacheTimeout'))) { $session->http->setStatus("304","Content Not Modified"); $session->http->sendHeader; - $session->close; return "chunked"; }