diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2025-12-19 20:23:23 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2025-12-19 20:23:23 +0100 |
| commit | 5961dc715c508c99eb74a0c44d6f8122b56857b9 (patch) | |
| tree | 5d642e29aaa65c892566bd21d4ae547a614e81e2 | |
| parent | d14e43bb05a96762eef1b2c7c8c1de51767ed1e9 (diff) | |
Fix #52
| -rw-r--r-- | osm.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -60,7 +60,7 @@ :prefix "osm-") (defcustom osm-curl-options - " --disable --user-agent emacs-osm/1.0 --fail --location --silent --max-time 30" + "--user-agent emacs-osm/1.0 --fail --location --silent --max-time 30" "Curl command line options." :type 'string) @@ -603,7 +603,7 @@ Local per buffer since the overlays depend on the zoom level.") (cl-callf2 delq job osm--download-queue))) (cl-callf (lambda (s) (mod (1+ s) subs)) (alist-get osm-server osm--download-subdomain 0)) - (cons `("curl" "--write-out" "%{http_code} %{filename_effective}\n" + (cons `("curl" "--disable" "--write-out" "%{http_code} %{filename_effective}\n" ,@(split-string-and-unquote osm-curl-options) ,@(nreverse args)) jobs))) @@ -1646,7 +1646,7 @@ When called interactively, call the function `osm-home'." (with-temp-buffer (let* ((default-process-coding-system '(utf-8-unix . utf-8-unix)) (status (apply #'call-process "curl" nil (current-buffer) nil - `(,@(split-string-and-unquote osm-curl-options) ,url)))) + `("--disable" ,@(split-string-and-unquote osm-curl-options) ,url)))) (unless (eq status 0) (error "Fetching %s exited with status %s" url status))) (goto-char (point-min)) @@ -1658,7 +1658,7 @@ When called interactively, call the function `osm-home'." (with-temp-buffer (let* ((default-process-coding-system '(utf-8-unix . utf-8-unix)) (status (apply #'call-process "curl" nil (current-buffer) nil - `(,@(split-string-and-unquote osm-curl-options) + `("--disable" ,@(split-string-and-unquote osm-curl-options) "-I" ,url)))) (unless (eq status 0) (error "Fetching %s exited with status %s" url status))) |
