From d7a02db9abf98f796bb9aad8d8ab2946cdd3c03b Mon Sep 17 00:00:00 2001 From: SouthFox Date: Sun, 10 Mar 2024 02:11:07 +0800 Subject: [PATCH] [fix] missing content type for inbox post --- app/hyap.hy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hyap.hy b/app/hyap.hy index c0af362..5ed614a 100644 --- a/app/hyap.hy +++ b/app/hyap.hy @@ -18,7 +18,7 @@ [url payload] (with/a [client (.AsyncClient httpx)] (let [headers {"User-Agent" config.USER_AGENT - "Accept" config.AP_CONTENT_TYPE}] + "Content-Type" config.AP_CONTENT_TYPE}] (setv resp (await (.post client url :headers headers :json payload :auth auth :timeout 15))) (.raise_for_status resp)