]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/gnus/eww.el (eww-browse-url): Don't add a User-Agent (twice), because that makes...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 16 Jun 2013 22:54:56 +0000 (22:54 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sun, 16 Jun 2013 22:54:56 +0000 (22:54 +0000)
lisp/gnus/ChangeLog
lisp/gnus/eww.el

index 58b5ae1a56acf092a5e2e31043bdf48cf31c26d0..c5318539889f11190dac070957d8f784349454a1 100644 (file)
@@ -1,6 +1,8 @@
 2013-06-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * eww.el (eww-display-html): Default to using the entire window width.
+       (eww-browse-url): Don't add a User-Agent header (twice), because that
+       makes Bing refuse connection.
 
        * shr.el (shr-make-table): Cache the table rendering at the table
        level, and not the <td> level.  This is a bit faster.
index b34ec7655ccd12cf4b46d857c1b38cac4a9b2275..868450c51dd8ba040e5af47a8f028c7113f76db2 100644 (file)
   (set (make-local-variable 'browse-url-browser-function) 'eww-browse-url))
 
 (defun eww-browse-url (url &optional new-window)
-  (let ((url-request-extra-headers
-        (append '(("User-Agent" . "eww/1.0"))
-                url-request-extra-headers)))
-    (push (list eww-current-url (point))
-         eww-history)
-    (eww url)))
+  (push (list eww-current-url (point))
+       eww-history)
+  (eww url))
 
 (defun eww-quit ()
   "Exit the Emacs Web Wowser."