Turned on Debug middleware
Removed unnecessary $session->close() now that we have WebGUI::Middleware::Session Fixed Content-Type bug
This commit is contained in:
parent
10e8d1898d
commit
f22020c267
7 changed files with 6 additions and 19 deletions
|
|
@ -113,7 +113,6 @@ sub handler {
|
|||
if ($var->get("userId") eq "1" && defined $asset && !$http->ifModifiedSince($asset->getContentLastModified)) {
|
||||
$http->setStatus("304","Content Not Modified");
|
||||
$http->sendHeader;
|
||||
$session->close;
|
||||
return "chunked";
|
||||
}
|
||||
|
||||
|
|
@ -128,7 +127,6 @@ sub handler {
|
|||
my $ct = guess_media_type($filename);
|
||||
my $oldContentType = $request->content_type($ct);
|
||||
if ($request->sendfile($filename) ) {
|
||||
$session->close;
|
||||
return; # TODO - what should we return to indicate streaming?
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue