[back/fix] missing wrap json
This commit is contained in:
parent
b052dc09fd
commit
2e010c8223
1 changed files with 3 additions and 4 deletions
|
@ -75,16 +75,15 @@
|
||||||
(if (empty? docs)
|
(if (empty? docs)
|
||||||
{:status 404
|
{:status 404
|
||||||
:headers (:content-type params)
|
:headers (:content-type params)
|
||||||
:body {:content "Not Found"
|
:body (wrap-json {:content "Not Found"
|
||||||
:title "Not Found"}}
|
:title "Not Found"})}
|
||||||
(process-hu-post page params))))
|
(process-hu-post page params))))
|
||||||
|
|
||||||
(defn clean-answer-img
|
(defn clean-answer-img
|
||||||
[content]
|
[content]
|
||||||
(let [docs (Jsoup/parse content)]
|
(let [docs (Jsoup/parse content)]
|
||||||
(clean-images docs)
|
(clean-images docs)
|
||||||
(.toString docs))
|
(.toString docs)))
|
||||||
)
|
|
||||||
|
|
||||||
(defn build-api-hu-post
|
(defn build-api-hu-post
|
||||||
[request]
|
[request]
|
||||||
|
|
Loading…
Reference in a new issue