aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
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 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)