From 8b1f5e958ecd55f922d9943e690e46cbf6d5d66d Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 28 Apr 2026 19:05:46 +0200 Subject: [PATCH] Replace http-response with response in handler Updated the handler to use the correct response utility from the ring library. `ring.util.http-response/content-type` does not exist --- .../io/github/kit_clj/kit/src/clj/web/handler.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/web/handler.clj b/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/web/handler.clj index 35dd408e..853b1c51 100644 --- a/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/web/handler.clj +++ b/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/web/handler.clj @@ -2,7 +2,7 @@ (:require [<>.web.middleware.core :as middleware] [integrant.core :as ig] - [ring.util.http-response :as http-response] + [ring.util.response :as response] [reitit.ring :as ring] [reitit.swagger-ui :as swagger-ui])) @@ -21,13 +21,13 @@ (ring/create-default-handler {:not-found (constantly (-> {:status 404, :body "Page not found"} - (http-response/content-type "text/plain"))) + (response/content-type "text/plain"))) :method-not-allowed (constantly (-> {:status 405, :body "Not allowed"} - (http-response/content-type "text/plain"))) + (response/content-type "text/plain"))) :not-acceptable (constantly (-> {:status 406, :body "Not acceptable"} - (http-response/content-type "text/plain")))})) + (response/content-type "text/plain")))})) {:middleware [(middleware/wrap-base opts)]})) (defmethod ig/init-key :router/routes