From 121c59ea5c474a24f4364c8b82b5d9795a752553 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 23 Aug 2021 07:27:24 -0500 Subject: Added user.agent fix to correct color display, also using https --- wttrin.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wttrin.el') diff --git a/wttrin.el b/wttrin.el index 512b6a7..2357aec 100644 --- a/wttrin.el +++ b/wttrin.el @@ -35,11 +35,11 @@ (defun wttrin-fetch-raw-string (query) "Get the weather information based on your QUERY." - (let ((url-request-extra-headers '(("User-Agent" . "curl")))) + (let ((url-user-agent "curl")) (add-to-list 'url-request-extra-headers wttrin-default-accept-language) (with-current-buffer (url-retrieve-synchronously - (concat "http://wttr.in/" query) + (concat "https://wttr.in/" query "?A") (lambda (status) (switch-to-buffer (current-buffer)))) (decode-coding-string (buffer-string) 'utf-8)))) -- cgit v1.2.3