aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-12-23 10:51:45 +0100
committermousebot <mousebot@riseup.net>2021-12-23 10:58:14 +0100
commit86d51fd563f3caaaf029cf0df06fffce3d75d8a7 (patch)
tree6c06f3749404377254732c1589c78c4fa98df427 /lisp
parenta20b072589d6b00bce050978c5bb8d47af5a99fb (diff)
apply pleroma patch from #208
Diffstat (limited to 'lisp')
-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))))