summaryrefslogtreecommitdiff
path: root/lisp/url
diff options
context:
space:
mode:
authorMagnus Henoch <mange@freemail.hu>2007-01-14 23:17:28 +0000
committerMagnus Henoch <mange@freemail.hu>2007-01-14 23:17:28 +0000
commitc1e6d824ae4e98b4bdbc77ae55fd3dc1dfcc4a61 (patch)
tree28527e6a94e56aa9abb94086f2f96a5e540dd2ec /lisp/url
parent62bfb5bb9883f79fca3950ea906184233ab90c63 (diff)
downloademacs-c1e6d824ae4e98b4bdbc77ae55fd3dc1dfcc4a61.tar.gz
(url-proxy-object): Remove.
(url-proxy): Don't use `url-proxy-object'. Act according to type of proxy (currently only HTTP supported).
Diffstat (limited to 'lisp/url')
-rw-r--r--lisp/url/url-proxy.el15
1 files changed, 6 insertions, 9 deletions
diff --git a/lisp/url/url-proxy.el b/lisp/url/url-proxy.el
index 5374030587b..0487b6abbff 100644
--- a/lisp/url/url-proxy.el
+++ b/lisp/url/url-proxy.el
@@ -65,20 +65,17 @@
(url-warn 'url (format "Unknown proxy directive: %s" proxy) 'critical)
nil))))
-(defvar url-proxy-object nil
- "The URL to access through a proxy.
-This variable is bound by `url-proxy'. If this is non-nil, the
-scheme-specific loader should use its argument as the proxy, and
-the value of this variable as the object to retrieve.")
-
(defun url-proxy (url callback &optional cbargs)
;; Retrieve URL from a proxy.
;; Expects `url-using-proxy' to be bound to the specific proxy to use."
(setq url-using-proxy (url-generic-parse-url url-using-proxy))
- (let ((url-proxy-object (copy-sequence url)))
- (url-set-target url-proxy-object nil)
- (url-http url-using-proxy callback cbargs)))
+ (cond
+ ((string= (url-type url-using-proxy) "http")
+ (url-http url callback cbargs))
+ (t
+ (error "Don't know how to use proxy `%s'" url-using-proxy))))
+
(provide 'url-proxy)
;;; arch-tag: 4ff8882e-e498-42b7-abc5-acb449cdbc62