]> git.eshelyaron.com Git - emacs.git/commit
Fix problem with fetching images via Cloudflare
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 6 Mar 2022 16:41:18 +0000 (17:41 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 6 Mar 2022 16:41:28 +0000 (17:41 +0100)
commit56bdfe78208149fa864842d47bfd08d1bc4d6d10
tree855b5664f0a61fe4b383c6322d528e5e4ce96149
parent93c2daa33d3aac7c61f322c9d21f3ccab7bdcd4a
Fix problem with fetching images via Cloudflare

* lisp/url/url-http.el (url-http): Factor out url-interactive-p.
* lisp/url/url-auth.el (url-basic-auth):
(url-basic-auth):
(url-digest-prompt-creds): Use it to not query the user.

* lisp/url/url-queue.el (url-queue-start-retrieve): Don't send a
bogus empty Authorization header (bug#54246) -- this triggers
Cloudflare's anti-attack software.  Instead rely on
url-request-noninteractive.

* lisp/url/url-vars.el (url-interactive-p): New utility function.
lisp/url/url-auth.el
lisp/url/url-http.el
lisp/url/url-queue.el
lisp/url/url-vars.el