aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-12-23 13:07:58 +0100
committermousebot <mousebot@riseup.net>2021-12-23 13:07:58 +0100
commit528372ab3751b7ee4bd41f9bd2658abaa093fe20 (patch)
tree72dd64bad3c6bd3702bceecbf4caabbba7e8c57a /lisp/mastodon-http.el
parentcbef7ab3c3b5cb452e9c5409f3fa12cbba0e7558 (diff)
parent86d51fd563f3caaaf029cf0df06fffce3d75d8a7 (diff)
Merge branch 'main' into develop
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 33182ff..c0fa101 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -113,6 +113,8 @@ Authorization header is included by default unless UNAUTHENTICED-P is non-nil."
(append
(unless unauthenticed-p
`(("Authorization" . ,(concat "Bearer " (mastodon-auth--access-token)))))
+ (unless (assoc "Content-Type" headers)
+ '(("Content-Type" . "application/x-www-form-urlencoded")))
headers)))
(with-temp-buffer
(mastodon-http--url-retrieve-synchronously url))))