aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-05-11 19:58:01 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-05-11 19:58:01 +0200
commit6d05cf81ff5a84aa12735aeab2ac99a083c15033 (patch)
treea37163b58468602e9cbdf85000b4ab1872b47ebc /lisp/mastodon-http.el
parent5c6a6815b116c07439051228840333b47dc763cf (diff)
use url-http-end-of-headers in http.el
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 ba79bd0..6f472bc 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -192,7 +192,7 @@ Callback to `mastodon-http--get-response-async', usually
(let ((headers (unless no-headers
(mastodon-http--process-headers))))
(goto-char (point-min))
- (re-search-forward "^$" nil 'move)
+ (goto-char url-http-end-of-headers)
(let ((json-array-type (if vector 'vector 'list))
(json-string (decode-coding-string
(buffer-substring-no-properties (point) (point-max))
@@ -215,7 +215,7 @@ Callback to `mastodon-http--get-response-async', usually
(goto-char (point-min))
(let* ((head-str (buffer-substring-no-properties
(point-min)
- (re-search-forward "^$" nil 'move)))
+ (goto-char url-http-end-of-headers)))
(head-list (split-string head-str "\n")))
(mapcar (lambda (x)
(let ((list (split-string x ": ")))