diff options
author | mousebot <mousebot@riseup.net> | 2021-12-23 10:51:45 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-12-23 10:51:45 +0100 |
commit | 0cffc91cfd362190eac9580983cda74248a2d3a0 (patch) | |
tree | 36dca3e0379ec244e95649e333b900da924a7f68 /lisp | |
parent | d4c0d2a2a3013136f5b1fea40ae1e7022f461dd9 (diff) |
apply pleroma patch from #208
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-http.el | 2 |
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) |