branch: elpa/fedi
commit ee6cbd17f4013fb8ea6dff5b51a4bb6347ef05e6
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>
remove pleroma headers
---
fedi-http.el | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/fedi-http.el b/fedi-http.el
index 601ec30da11..245d028b3fd 100644
--- a/fedi-http.el
+++ b/fedi-http.el
@@ -134,9 +134,7 @@ JSON means we are posting a JSON payload, so we add headers
and json-string PARA
'(("Content-Type" . "application/json")
("Accept" . "application/json")))))
(url-request-extra-headers
- (append url-request-extra-headers ; auth set in macro
- (unless (assoc "Content-Type" headers) ; pleroma compat:
- '(("Content-Type" . "application/x-www-form-urlencoded")))
+ (append url-request-extra-headers ; set in macro
headers)))
(with-temp-buffer
(fedi-http--url-retrieve-synchronously url))))
@@ -257,10 +255,9 @@ HEADERS is an alist of any extra headers to send with the
request."
("Accept" . "application/json")))))
(url-request-extra-headers
(append url-request-extra-headers ; auth set in macro
- (unless (assoc "Content-Type" headers) ; pleroma compat:
- '(("Content-Type" . "application/x-www-form-urlencoded")))
headers)))
- (with-temp-buffer (fedi-http--url-retrieve-synchronously url))))
+ (with-temp-buffer
+ (fedi-http--url-retrieve-synchronously url))))
(defun fedi-http--patch-json (url &optional params)
"Make synchronous PATCH request to URL. Return JSON response.