From 0cffc91cfd362190eac9580983cda74248a2d3a0 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 04a2235..ba0a259 100644 --- a/lisp/mastodon-http.el +++ b/lisp/mastodon-http.el @@ -87,6 +87,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 (if (< (cdr (func-arity 'url-retrieve-synchronously)) 4) -- cgit v1.2.3