diff options
author | mousebot <mousebot@riseup.net> | 2021-12-23 13:07:58 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-12-23 13:07:58 +0100 |
commit | 528372ab3751b7ee4bd41f9bd2658abaa093fe20 (patch) | |
tree | 72dd64bad3c6bd3702bceecbf4caabbba7e8c57a /lisp/mastodon-http.el | |
parent | cbef7ab3c3b5cb452e9c5409f3fa12cbba0e7558 (diff) | |
parent | 86d51fd563f3caaaf029cf0df06fffce3d75d8a7 (diff) |
Merge branch 'main' into develop
Diffstat (limited to 'lisp/mastodon-http.el')
-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 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)))) |