From 233a76d571769ea6213eae9b0763f46f7f68d623 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:24:32 -0600 Subject: [PATCH] Fix content-type of objects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From application/json → application/activity+json --- src/activity-servist.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activity-servist.lisp b/src/activity-servist.lisp index 1545d58..df30fc9 100644 --- a/src/activity-servist.lisp +++ b/src/activity-servist.lisp @@ -135,7 +135,7 @@ can be found). Uses the callback :FETCH, defined in *CONFIG*." (append (list (getf *config* :host)) path-items))) (obj (fetch uri))) (if obj - (list 200 '(:content-type "application/json") + (list 200 '(:content-type "application/activity+json") (list (yason:with-output-to-string* () (yason:encode-object obj)))) `(400 (:content-type "text/plain") ("Such an object doesn’t exist!")))))