]> code.delx.au - gnu-emacs/commit
Backport: * lisp/emacs-lisp/package.el: Fix a decoding issue.
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 15 Nov 2015 21:28:37 +0000 (21:28 +0000)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 15 Nov 2015 21:32:47 +0000 (21:32 +0000)
commitd99ccd6dd171a12cf528c03a4a956ad1751173c5
treeba3e79ee794cd6a875adce1560a553d7c692b332
parenta6843cce90b5041adc456815ca0f7a3fdda6db1f
Backport: * lisp/emacs-lisp/package.el: Fix a decoding issue.

* lisp/url/url-handlers.el (url-insert-file-contents): Move some code to
`url-insert-buffer-contents'.
(url-insert-buffer-contents): New function

(package--with-response-buffer): Use `url-insert-buffer-contents'.
The previous code had some issues with decoding. Refactoring that
function allows us to use the decoding from url-handlers while still
treating both sync and async requests the same.
lisp/emacs-lisp/package.el
lisp/url/url-handlers.el