Skip to content

Commit

Permalink
solved url-request-extra-headers '(("User-Agent" . "curl"))) cannot o…
Browse files Browse the repository at this point in the history
…verride url-user-agent
  • Loading branch information
emacle committed May 6, 2020
1 parent df5427c commit ed56927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wttrin.el
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

(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
Expand Down

0 comments on commit ed56927

Please sign in to comment.