update-melpa: use url lib to parse HTTP instead of custom code
This improves compatiblity of parsing http header.
This commit is contained in:
@@ -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))))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user