]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow binding `url-mime-accept-string'
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 1 Mar 2016 03:49:26 +0000 (14:49 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 1 Mar 2016 03:49:26 +0000 (14:49 +1100)
* lisp/url/url-http.el (url-http): Allow binding
`url-mime-accept-string' (bug#22855).

etc/NEWS
lisp/url/url-http.el

index b1c1e6ec02824994c58a42b0e2ab179fb8cd32df..9ffd7b739ef452d155d856b45e2a9f33f5c96dc5 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1101,6 +1101,10 @@ a function.
 to specify that we're running in a noninteractive context, and that
 we should not be queried about things like TLS certificate validity.
 
+---
+*** `url-mime-accept-string' can now be used as in "interface"
+variable, meaning you can bind it around an `url-retrieve' call.
+
 ---
 *** If URL is used with a https connection, the first callback argument
 plist will contain a :peer element that has the output of
index d49e527fe4bda319bc7d582232fb17119945c1df..33f6d11eef3ca7112c8c7f4a9ca292e32ef4953c 100644 (file)
@@ -1210,6 +1210,7 @@ The return value of this function is the retrieval buffer."
                                 (and (boundp 'url-http-noninteractive)
                                      url-http-noninteractive)))
         (connection (url-http-find-free-connection host port gateway-method))
+         (mime-accept-string url-mime-accept-string)
         (buffer (or retry-buffer
                     (generate-new-buffer
                       (format " *http %s:%d*" host port)))))
@@ -1245,6 +1246,7 @@ The return value of this function is the retrieval buffer."
                       url-http-target-url
                       url-http-no-retry
                       url-http-connection-opened
+                       url-mime-accept-string
                       url-http-proxy))
          (set (make-local-variable var) nil))
 
@@ -1262,6 +1264,7 @@ The return value of this function is the retrieval buffer."
              url-http-target-url url-current-object
              url-http-no-retry retry-buffer
              url-http-connection-opened nil
+              url-mime-accept-string mime-accept-string
              url-http-proxy url-using-proxy)
 
        (set-process-buffer connection buffer)