Index: /home/mh/eclipse/SVN/Slim/Web/HTTP.pm =================================================================== --- /home/mh/eclipse/SVN/Slim/Web/HTTP.pm (revision 3150) +++ /home/mh/eclipse/SVN/Slim/Web/HTTP.pm (working copy) @@ -907,8 +907,6 @@ $body = filltemplatefile('html/errors/404.html', $params); } - return 0 unless $body; - # for our static content $response->last_modified($mtime) if defined $mtime; @@ -925,6 +923,8 @@ $response->content_type($contentType); + return 0 unless $body; + # if the reference to the body is itself undefined, then we've started # generating the page in the background return prepareResponseForSending($client, $params, $body, $httpClient, $response);