[gnus git] branch master updated: m0-7-99-g44cf7e9 =1= Don't add User-Agent.

Lars Magne Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  44cf7e926ddf058f8b88de93f33c9921d291897f (commit)
      from  1cd9c4660a3b34e9bcafddd8fd681c1bde30c143 (commit)


- Log -----------------------------------------------------------------
commit 44cf7e926ddf058f8b88de93f33c9921d291897f
Author: Lars Magne Ingebrigtsen <[email protected]>
Date:   Mon Jun 17 00:20:51 2013 +0200

    Don't add User-Agent.
    
    (eww-browse-url): Don't add a User-Agent header (twice), because that
    makes Bing refuse connection.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b7e4472..d7f1d1b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,8 @@
 2013-06-16  Lars Magne Ingebrigtsen  <[email protected]>
 
 	* 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.
diff --git a/lisp/eww.el b/lisp/eww.el
index b34ec76..868450c 100644
--- a/lisp/eww.el
+++ b/lisp/eww.el
@@ -222,12 +222,9 @@
   (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)))
+  (eww url))
 
 (defun eww-quit ()
   "Exit the Emacs Web Wowser."

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog |    2 ++
 lisp/eww.el    |    9 +++------
 2 files changed, 5 insertions(+), 6 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.