Skip to content

Commit

Permalink
apply fix to not display raw html
Browse files Browse the repository at this point in the history
fix from bcbcarl#20
  • Loading branch information
sfromm committed Dec 29, 2021
1 parent df5427c commit fd86ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wttrin.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 "http://wttr.in/" query "?A")
(lambda (status) (switch-to-buffer (current-buffer))))
(decode-coding-string (buffer-string) 'utf-8))))

Expand Down

0 comments on commit fd86ff8

Please sign in to comment.