Multibyte payload works now
This commit is contained in:
parent
44fb954ef9
commit
ac63ec4580
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ if the user is not present"
|
|||
"Builds a Mattermost request and returns the JSON response"
|
||||
(let ((url-request-method method)
|
||||
(url-request-extra-headers `(("Content-Type" . "application/json")))
|
||||
(url-request-data (if body (json-serialize body))))
|
||||
(url-request-data (if body (encode-coding-string (json-serialize body) 'utf-8))))
|
||||
(if mattermost-token
|
||||
(add-to-list 'url-request-extra-headers `("Authorization" . ,(concat "Bearer " mattermost-token))))
|
||||
(with-current-buffer (url-retrieve-synchronously (concat "https://" mattermost-host "/api/v4" url) t)
|
||||
|
|
Loading…
Reference in a new issue