From 19aae06f7ff17f16f008133a3bf234b89ab7de1e Mon Sep 17 00:00:00 2001 From: Akira Tempaku <paku@skyizwhite.dev> Date: Sat, 21 Jun 2025 02:28:25 +0900 Subject: [PATCH] Use instance specialization for not-found handler --- src/router.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.lisp b/src/router.lisp index 6a2b150..e6ab39a 100644 --- a/src/router.lisp +++ b/src/router.lisp @@ -61,7 +61,7 @@ :do (load-system pkg) (if (string= uri "/not-found") (let ((handler (find-symbol "HANDLE-NOT-FOUND" pkg))) - (defmethod ningle:not-found ((app ningle:app)) + (defmethod ningle:not-found ((app (eql app))) (setf (response-status ningle:*response*) 404) (funcall handler)))) (loop