aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-09 14:00:39 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-09 14:00:39 +0100
commite847059950308eea45bb70736a33a6d4c348bfff (patch)
tree685207aebb6b09906bfb99249a1c209a6c37a165 /lisp/mastodon-http.el
parent596a9498a8dcc2aecb28f94f9ba57766583f5fab (diff)
use a proper dotted alist for response headers list
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index fedbe95..1c6e1ae 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -191,8 +191,8 @@ Return a cons of JSON list and http response headers."
(re-search-forward "^$" nil 'move)))
(head-list (split-string head-str "\n")))
(mapcar (lambda (x)
- ;; FIXME: use dotted notation so alist-get doesn't return a list
- (split-string x ": "))
+ (let ((list (split-string x ": ")))
+ (cons (car list) (cadr list))))
head-list)))
(defun mastodon-http--delete (url)