update-melpa: use url lib to parse HTTP instead of custom code

This improves compatiblity of parsing http header.
This commit is contained in:
Vonfry
2024-01-03 18:51:32 +08:00
parent e9a8b6e465
commit 2e2097cb96
@@ -257,10 +257,9 @@ return Promise to resolve in that process."
url (lambda (status)
(funcall resolve (condition-case err
(progn
(goto-char (point-min))
(search-forward "\n\n")
(url-http-parse-headers)
(goto-char url-http-end-of-headers)
(message (buffer-substring (point-min) (point)))
(delete-region (point-min) (point))
(funcall parser))
(funcall reject err))))))))