From 86d51fd563f3caaaf029cf0df06fffce3d75d8a7 Mon Sep 17 00:00:00 2001 From: mousebot Date: Thu, 23 Dec 2021 10:51:45 +0100 Subject: apply pleroma patch from #208 --- lisp/mastodon-http.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lisp') 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)))) -- cgit v1.2.3