From: Ulf Jasper Date: Mon, 29 Sep 2014 08:18:32 +0000 (+0200) Subject: Do not set `url-gateway-method' in `url-https'. (Bug#16543) X-Git-Tag: emacs-25.0.90~2635^2~679^2~199 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d7ade06a112d826a6a5d673e1db4e7959ed62a7;p=emacs.git Do not set `url-gateway-method' in `url-https'. (Bug#16543) Currently, when `url-retrieve' is called for an https url it modifies the variable `url-gateway-method'. This has been changed to explicitly pass the requested gateway method to other functions. When `url-retrieve' is being processed then (via `accept-process-output') another `url-retrieve' call from a pending timer can be started. The second call would always see the modified `url-gateway-method' of the first one, which in general does not match the url. 2014-09-28 Ulf Jasper * url-gw.el (url-open-stream): New optional parameter `gateway-method'. If non-nil use it instead of global variable `url-gateway-method'. * url/url-http.el (url-http): New optional parameter `gateway-method', pass it to `url-http-find-free-connection'. (url-http-find-free-connection): New optional parameter gateway-method, pass it to `url-open-stream'. (url-https-create-secure-wrapper): Do not modify `url-gateway-method' but explicitly provide 'tls as gateway-method parameter to `url-https'. --- 2d7ade06a112d826a6a5d673e1db4e7959ed62a7