summaryrefslogtreecommitdiff
path: root/wttrin.el
diff options
context:
space:
mode:
authorCraig Jennings <craigmartinjennings@gmail.com>2021-08-23 07:27:24 -0500
committerCraig Jennings <craigmartinjennings@gmail.com>2021-08-23 07:27:24 -0500
commit121c59ea5c474a24f4364c8b82b5d9795a752553 (patch)
treefcfea293c74c0470181c1e3351d75e6d19fdae6d /wttrin.el
parentdf5427ce2a5ad4dab652dbb1c4a1834d7ddc2abc (diff)
Added user.agent fix to correct color display, also using https
Diffstat (limited to 'wttrin.el')
-rw-r--r--wttrin.el4
1 files changed, 2 insertions, 2 deletions
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))))