From d8a24798412a1badd76c076b9421ddd6f12bc425 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 23 Mar 2014 16:55:06 -0400 Subject: [PATCH] fix custom 404 handler throwing errors of its own --- src/blarg/handler.clj | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/blarg/handler.clj b/src/blarg/handler.clj index 13da2d5..bcfb8c7 100644 --- a/src/blarg/handler.clj +++ b/src/blarg/handler.clj @@ -19,11 +19,7 @@ (defroutes app-routes (route/resources "/") - (wrap-head - (fn [request] - {:status 404 - :headers {"Content-Type" "text/html"} - :body (layout/render "notfound.html")}))) + (route/not-found (layout/render "notfound.html"))) (defn init [] (timbre/set-config!