diff options
| author | Craig Jennings <craigmartinjennings@gmail.com> | 2021-08-23 07:27:24 -0500 |
|---|---|---|
| committer | Craig Jennings <craigmartinjennings@gmail.com> | 2021-08-23 07:27:24 -0500 |
| commit | 121c59ea5c474a24f4364c8b82b5d9795a752553 (patch) | |
| tree | fcfea293c74c0470181c1e3351d75e6d19fdae6d | |
| parent | df5427ce2a5ad4dab652dbb1c4a1834d7ddc2abc (diff) | |
Added user.agent fix to correct color display, also using https
| -rw-r--r-- | wttrin.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)))) |
