Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Added a fix to set response header correctly for a 404 error
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Dec 18, 2013
1 parent 82e7131 commit d999a35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/Zepto/Zepto.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ protected function setup_router()
? $content['meta']['template']
: $container['settings']['zepto']['default_template'];

if ($file === '404') {
header("HTTP/1.0 404 Not Found");
}

// Render template with Twig
echo $twig->render($template_name, $options);
});
Expand Down

0 comments on commit d999a35

Please sign in to comment.