This commit is contained in:
Miguel de la Cruz 2022-05-22 18:13:39 +02:00
parent 9d4bab5a20
commit c72317202f

View file

@ -54,7 +54,7 @@
;; ToDo: update to parse headers as well ;; ToDo: update to parse headers as well
(defun mattermost-request (method url &optional body) (defun mattermost-request (method url &optional body)
"Builds a mattemrost request and returns the JSON response" "Builds a Mattermost request and returns the JSON response"
(let ((url-request-method method) (let ((url-request-method method)
(url-request-extra-headers `(("Content-Type" . "application/json"))) (url-request-extra-headers `(("Content-Type" . "application/json")))
(url-request-data (if body (json-serialize body)))) (url-request-data (if body (json-serialize body))))