[fix] missing content type for inbox post
All checks were successful
/ run-pytest (push) Successful in 38s

This commit is contained in:
SouthFox 2024-03-10 02:11:07 +08:00
parent 47e615ebf4
commit d7a02db9ab

View file

@ -18,7 +18,7 @@
[url payload] [url payload]
(with/a [client (.AsyncClient httpx)] (with/a [client (.AsyncClient httpx)]
(let [headers {"User-Agent" config.USER_AGENT (let [headers {"User-Agent" config.USER_AGENT
"Accept" config.AP_CONTENT_TYPE}] "Content-Type" config.AP_CONTENT_TYPE}]
(setv resp (setv resp
(await (.post client url :headers headers :json payload :auth auth :timeout 15))) (await (.post client url :headers headers :json payload :auth auth :timeout 15)))
(.raise_for_status resp) (.raise_for_status resp)