* url.el (url-retrieve-internal): Fix last change.

Fixes: debbugs:11627
This commit is contained in:
Chong Yidong 2012-06-21 17:21:28 +08:00
parent ac1a0ce1c6
commit a3f10d3e4b
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2012-06-21 Chong Yidong <cyd@gnu.org>
* url.el (url-retrieve-internal): Fix last change (Bug#11627).
2012-06-13 Juanma Barranquero <lekktu@gmail.com>
* url-handlers.el (url-handler-regexp): Declare.

View file

@ -180,9 +180,9 @@ If URL is a multibyte string, it will be encoded as utf-8 and
URL-encoded before it's used."
(url-do-setup)
(url-gc-dead-buffers)
(if (stringp url)
(set-text-properties 0 (length url) nil url))
(setq url (url-encode-url url))
(when (stringp url)
(set-text-properties 0 (length url) nil url)
(setq url (url-encode-url url)))
(if (not (vectorp url))
(setq url (url-generic-parse-url url)))
(if (not (functionp callback))