emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r110337: * lisp/url/url-http.el (url-


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110337: * lisp/url/url-http.el (url-http-user-agent-string): Leak less info.
Date: Mon, 01 Oct 2012 23:48:01 -0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110337
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Mon 2012-10-01 23:48:01 -0400
message:
  * lisp/url/url-http.el (url-http-user-agent-string): Leak less info.
  (url-http, url-http-file-exists-p, url-http-file-readable-p)
  (url-http-file-attributes, url-http-options, url-https-default-port)
  (url-https-asynchronous-p): Don't autoload.
modified:
  lisp/url/ChangeLog
  lisp/url/url-http.el
=== modified file 'lisp/url/ChangeLog'
--- a/lisp/url/ChangeLog        2012-09-30 03:26:52 +0000
+++ b/lisp/url/ChangeLog        2012-10-02 03:48:01 +0000
@@ -1,3 +1,10 @@
+2012-10-02  Stefan Monnier  <address@hidden>
+
+       * url-http.el (url-http-user-agent-string): Leak less info.
+       (url-http, url-http-file-exists-p, url-http-file-readable-p)
+       (url-http-file-attributes, url-http-options, url-https-default-port)
+       (url-https-asynchronous-p): Don't autoload.
+
 2012-09-30  Stefan Monnier  <address@hidden>
 
        * url-handlers.el (url-file-handler): Don't assume any url-FOO function

=== modified file 'lisp/url/url-http.el'
--- a/lisp/url/url-http.el      2012-08-14 14:54:51 +0000
+++ b/lisp/url/url-http.el      2012-10-02 03:48:01 +0000
@@ -215,17 +215,11 @@
          (and (listp url-privacy-level)
               (memq 'agent url-privacy-level)))
       ""
-    (format "User-Agent: %sURL/%s%s\r\n"
+    (format "User-Agent: %sURL/%s\r\n"
            (if url-package-name
                (concat url-package-name "/" url-package-version " ")
              "")
-           url-version
-           (cond
-            ((and url-os-type url-system-type)
-             (concat " (" url-os-type "; " url-system-type ")"))
-            ((or url-os-type url-system-type)
-             (concat " (" (or url-system-type url-os-type) ")"))
-            (t "")))))
+           url-version)))
 
 (defun url-http-create-request (&optional ref-url)
   "Create an HTTP request for `url-http-target-url', referred to by REF-URL."
@@ -1153,7 +1147,6 @@
     (when (eq process-buffer (current-buffer))
       (goto-char (point-max)))))
 
-;;;###autoload
 (defun url-http (url callback cbargs &optional retry-buffer)
   "Retrieve URL via HTTP asynchronously.
 URL must be a parsed URL.  See `url-generic-parse-url' for details.
@@ -1299,7 +1292,6 @@
        (url-request-data nil))
     (url-retrieve-synchronously url)))
 
-;;;###autoload
 (defun url-http-file-exists-p (url)
   (let ((status nil)
        (exists nil)
@@ -1313,7 +1305,6 @@
       (kill-buffer buffer))
     exists))
 
-;;;###autoload
 (defalias 'url-http-file-readable-p 'url-http-file-exists-p)
 
 (defun url-http-head-file-attributes (url &optional id-format)
@@ -1333,13 +1324,11 @@
 
 (declare-function url-dav-file-attributes "url-dav" (url &optional id-format))
 
-;;;###autoload
 (defun url-http-file-attributes (url &optional id-format)
   (if (url-dav-supported-p url)
       (url-dav-file-attributes url id-format)
     (url-http-head-file-attributes url id-format)))
 
-;;;###autoload
 (defun url-http-options (url)
   "Return a property list describing options available for URL.
 This list is retrieved using the `OPTIONS' HTTP method.
@@ -1417,9 +1406,7 @@
 ;; with url-http.el on systems with 8-character file names.
 (require 'tls)
 
-;;;###autoload
 (defconst url-https-default-port 443 "Default HTTPS port.")
-;;;###autoload
 (defconst url-https-asynchronous-p t "HTTPS retrievals are asynchronous.")
 
 ;; FIXME what is the point of this alias being an autoload?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]