diff options
| author | Stefan Monnier | 2012-10-01 23:48:01 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-10-01 23:48:01 -0400 |
| commit | e79186e5b96090f7b2afbb83835c8734f9c470f0 (patch) | |
| tree | db27a085b10e7c1356c280ccb294d10dfc9813f0 | |
| parent | 184861394bd5239ab06cbb0495c85adf7d353dab (diff) | |
| download | emacs-e79186e5b96090f7b2afbb83835c8734f9c470f0.tar.gz emacs-e79186e5b96090f7b2afbb83835c8734f9c470f0.zip | |
* 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.
| -rw-r--r-- | lisp/url/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 17 |
2 files changed, 9 insertions, 15 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index a00d748a4a4..01248a91cf2 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-10-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * url-http.el (url-http-user-agent-string): Leak less info. | ||
| 4 | (url-http, url-http-file-exists-p, url-http-file-readable-p) | ||
| 5 | (url-http-file-attributes, url-http-options, url-https-default-port) | ||
| 6 | (url-https-asynchronous-p): Don't autoload. | ||
| 7 | |||
| 1 | 2012-09-30 Stefan Monnier <monnier@iro.umontreal.ca> | 8 | 2012-09-30 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 9 | ||
| 3 | * url-handlers.el (url-file-handler): Don't assume any url-FOO function | 10 | * url-handlers.el (url-file-handler): Don't assume any url-FOO function |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 18d28e89f78..85b6efcde0d 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -215,17 +215,11 @@ request.") | |||
| 215 | (and (listp url-privacy-level) | 215 | (and (listp url-privacy-level) |
| 216 | (memq 'agent url-privacy-level))) | 216 | (memq 'agent url-privacy-level))) |
| 217 | "" | 217 | "" |
| 218 | (format "User-Agent: %sURL/%s%s\r\n" | 218 | (format "User-Agent: %sURL/%s\r\n" |
| 219 | (if url-package-name | 219 | (if url-package-name |
| 220 | (concat url-package-name "/" url-package-version " ") | 220 | (concat url-package-name "/" url-package-version " ") |
| 221 | "") | 221 | "") |
| 222 | url-version | 222 | url-version))) |
| 223 | (cond | ||
| 224 | ((and url-os-type url-system-type) | ||
| 225 | (concat " (" url-os-type "; " url-system-type ")")) | ||
| 226 | ((or url-os-type url-system-type) | ||
| 227 | (concat " (" (or url-system-type url-os-type) ")")) | ||
| 228 | (t ""))))) | ||
| 229 | 223 | ||
| 230 | (defun url-http-create-request (&optional ref-url) | 224 | (defun url-http-create-request (&optional ref-url) |
| 231 | "Create an HTTP request for `url-http-target-url', referred to by REF-URL." | 225 | "Create an HTTP request for `url-http-target-url', referred to by REF-URL." |
| @@ -1153,7 +1147,6 @@ the end of the document." | |||
| 1153 | (when (eq process-buffer (current-buffer)) | 1147 | (when (eq process-buffer (current-buffer)) |
| 1154 | (goto-char (point-max))))) | 1148 | (goto-char (point-max))))) |
| 1155 | 1149 | ||
| 1156 | ;;;###autoload | ||
| 1157 | (defun url-http (url callback cbargs &optional retry-buffer) | 1150 | (defun url-http (url callback cbargs &optional retry-buffer) |
| 1158 | "Retrieve URL via HTTP asynchronously. | 1151 | "Retrieve URL via HTTP asynchronously. |
| 1159 | URL must be a parsed URL. See `url-generic-parse-url' for details. | 1152 | URL must be a parsed URL. See `url-generic-parse-url' for details. |
| @@ -1299,7 +1292,6 @@ previous `url-http' call, which is being re-attempted." | |||
| 1299 | (url-request-data nil)) | 1292 | (url-request-data nil)) |
| 1300 | (url-retrieve-synchronously url))) | 1293 | (url-retrieve-synchronously url))) |
| 1301 | 1294 | ||
| 1302 | ;;;###autoload | ||
| 1303 | (defun url-http-file-exists-p (url) | 1295 | (defun url-http-file-exists-p (url) |
| 1304 | (let ((status nil) | 1296 | (let ((status nil) |
| 1305 | (exists nil) | 1297 | (exists nil) |
| @@ -1313,7 +1305,6 @@ previous `url-http' call, which is being re-attempted." | |||
| 1313 | (kill-buffer buffer)) | 1305 | (kill-buffer buffer)) |
| 1314 | exists)) | 1306 | exists)) |
| 1315 | 1307 | ||
| 1316 | ;;;###autoload | ||
| 1317 | (defalias 'url-http-file-readable-p 'url-http-file-exists-p) | 1308 | (defalias 'url-http-file-readable-p 'url-http-file-exists-p) |
| 1318 | 1309 | ||
| 1319 | (defun url-http-head-file-attributes (url &optional id-format) | 1310 | (defun url-http-head-file-attributes (url &optional id-format) |
| @@ -1333,13 +1324,11 @@ previous `url-http' call, which is being re-attempted." | |||
| 1333 | 1324 | ||
| 1334 | (declare-function url-dav-file-attributes "url-dav" (url &optional id-format)) | 1325 | (declare-function url-dav-file-attributes "url-dav" (url &optional id-format)) |
| 1335 | 1326 | ||
| 1336 | ;;;###autoload | ||
| 1337 | (defun url-http-file-attributes (url &optional id-format) | 1327 | (defun url-http-file-attributes (url &optional id-format) |
| 1338 | (if (url-dav-supported-p url) | 1328 | (if (url-dav-supported-p url) |
| 1339 | (url-dav-file-attributes url id-format) | 1329 | (url-dav-file-attributes url id-format) |
| 1340 | (url-http-head-file-attributes url id-format))) | 1330 | (url-http-head-file-attributes url id-format))) |
| 1341 | 1331 | ||
| 1342 | ;;;###autoload | ||
| 1343 | (defun url-http-options (url) | 1332 | (defun url-http-options (url) |
| 1344 | "Return a property list describing options available for URL. | 1333 | "Return a property list describing options available for URL. |
| 1345 | This list is retrieved using the `OPTIONS' HTTP method. | 1334 | This list is retrieved using the `OPTIONS' HTTP method. |
| @@ -1417,9 +1406,7 @@ p3p | |||
| 1417 | ;; with url-http.el on systems with 8-character file names. | 1406 | ;; with url-http.el on systems with 8-character file names. |
| 1418 | (require 'tls) | 1407 | (require 'tls) |
| 1419 | 1408 | ||
| 1420 | ;;;###autoload | ||
| 1421 | (defconst url-https-default-port 443 "Default HTTPS port.") | 1409 | (defconst url-https-default-port 443 "Default HTTPS port.") |
| 1422 | ;;;###autoload | ||
| 1423 | (defconst url-https-asynchronous-p t "HTTPS retrievals are asynchronous.") | 1410 | (defconst url-https-asynchronous-p t "HTTPS retrievals are asynchronous.") |
| 1424 | 1411 | ||
| 1425 | ;; FIXME what is the point of this alias being an autoload? | 1412 | ;; FIXME what is the point of this alias being an autoload? |