From 2e010c82235eb19eb08fade6f617e45847d900e5 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Mon, 11 Sep 2023 10:50:21 +0800 Subject: [PATCH] [back/fix] missing wrap json --- src/main/backend/handlers.clj | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/backend/handlers.clj b/src/main/backend/handlers.clj index ebba761..e4e7548 100644 --- a/src/main/backend/handlers.clj +++ b/src/main/backend/handlers.clj @@ -75,16 +75,15 @@ (if (empty? docs) {:status 404 :headers (:content-type params) - :body {:content "Not Found" - :title "Not Found"}} + :body (wrap-json {:content "Not Found" + :title "Not Found"})} (process-hu-post page params)))) (defn clean-answer-img [content] (let [docs (Jsoup/parse content)] (clean-images docs) - (.toString docs)) - ) + (.toString docs))) (defn build-api-hu-post [request]