diff options
author | Kyle Meyer <kyle@kyleam.com> | 2021-05-23 17:46:20 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2021-05-23 17:47:53 -0400 |
commit | 715d7501fca8ffd7c18b0ecec8f1d8550690d15d (patch) | |
tree | 16e39ea928137ab96a7806dded8d41f67af8512a /Documentation/RelNotes | |
parent | 8cc7c24db4b10bb31c8523a8ed0b6963b9b4fffa (diff) | |
download | piem-715d7501fca8ffd7c18b0ecec8f1d8550690d15d.tar.gz |
Rework url-retrieve-synchronously wrapper
piem-download-and-decompress calls url-retrieve-synchronously, checks
for a 200 status, and then manually removes the header. This works
okay, but it'd be good for the error handling to match what's done by
url-insert-file-contents.
Introduce a new macro that largely copies what is done by
url-insert-file-contents. The main difference is that url-insert is
used instead of url-insert-buffer-contents so that the contents can be
inserted literally.
This approach is based on Emacs's 5f9671e57e
(lisp/emacs-lisp/package.el: Fix decoding of downloaded files,
2019-05-18).
Message-Id: <20210523214623.31331-3-kyle@kyleam.com>
Diffstat (limited to 'Documentation/RelNotes')
0 files changed, 0 insertions, 0 deletions