[fix] missing content type for inbox post
All checks were successful
/ run-pytest (push) Successful in 38s
All checks were successful
/ run-pytest (push) Successful in 38s
This commit is contained in:
parent
47e615ebf4
commit
d7a02db9ab
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue