aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2013-06-16 22:54:56 +0000
committerKatsumi Yamaoka2013-06-16 22:54:56 +0000
commit5c3087e9762fe7248ddb31b683a8ff58c85f95e7 (patch)
tree1f94ccfa5c4965dc9e5a2fa484ebf7ad41fb31dd
parentc74cb3449a0c0e54f79ecec93886a0737326e033 (diff)
downloademacs-5c3087e9762fe7248ddb31b683a8ff58c85f95e7.tar.gz
emacs-5c3087e9762fe7248ddb31b683a8ff58c85f95e7.zip
lisp/gnus/eww.el (eww-browse-url): Don't add a User-Agent (twice), because that makes Bing refuse connection
-rw-r--r--lisp/gnus/ChangeLog2
-rw-r--r--lisp/gnus/eww.el9
2 files changed, 5 insertions, 6 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 58b5ae1a56a..c5318539889 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,6 +1,8 @@
12013-06-16 Lars Magne Ingebrigtsen <larsi@gnus.org> 12013-06-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * eww.el (eww-display-html): Default to using the entire window width. 3 * eww.el (eww-display-html): Default to using the entire window width.
4 (eww-browse-url): Don't add a User-Agent header (twice), because that
5 makes Bing refuse connection.
4 6
5 * shr.el (shr-make-table): Cache the table rendering at the table 7 * shr.el (shr-make-table): Cache the table rendering at the table
6 level, and not the <td> level. This is a bit faster. 8 level, and not the <td> level. This is a bit faster.
diff --git a/lisp/gnus/eww.el b/lisp/gnus/eww.el
index b34ec7655cc..868450c51dd 100644
--- a/lisp/gnus/eww.el
+++ b/lisp/gnus/eww.el
@@ -222,12 +222,9 @@
222 (set (make-local-variable 'browse-url-browser-function) 'eww-browse-url)) 222 (set (make-local-variable 'browse-url-browser-function) 'eww-browse-url))
223 223
224(defun eww-browse-url (url &optional new-window) 224(defun eww-browse-url (url &optional new-window)
225 (let ((url-request-extra-headers 225 (push (list eww-current-url (point))
226 (append '(("User-Agent" . "eww/1.0")) 226 eww-history)
227 url-request-extra-headers))) 227 (eww url))
228 (push (list eww-current-url (point))
229 eww-history)
230 (eww url)))
231 228
232(defun eww-quit () 229(defun eww-quit ()
233 "Exit the Emacs Web Wowser." 230 "Exit the Emacs Web Wowser."