diff options
| -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)))) |
