]> git.ipfire.org Git - thirdparty/curl.git/commit
url: Refactor detect_proxy()
authorERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
Fri, 16 Dec 2016 12:26:18 +0000 (21:26 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 13 Jan 2017 10:18:11 +0000 (11:18 +0100)
commitefdbfde7ca205f256c4e8b473c775cf73557cfd7
tree94f71491c4107c0bf12e7153f10c452d41f7bc25
parent1b57557882891285ff53c243bb4ede8b1ccac79c
url: Refactor detect_proxy()

If defined CURL_DISABLE_HTTP, detect_proxy() returned NULL. If not
defined CURL_DISABLE_HTTP, detect_proxy() checked noproxy list.

Thus refactor to set proxy to NULL instead of calling detect_proxy() if
define CURL_DISABLE_HTTP, and refactor to call detect_proxy() if not
define CURL_DISABLE_HTTP and the host is not in the noproxy list.
lib/url.c