diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2017-03-11 18:01:54 +0100 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2017-03-11 18:02:34 +0100 |
commit | 381aff03857544b05c34f3f095089cd170023978 (patch) | |
tree | fa004efa2be07a46280380d6e841484b523058e0 /lib | |
parent | 03c5223ee7fa8dcdb5c54ea58c1fb2cca67f35e6 (diff) |
url: don't compile detect_proxy if HTTP support is disabled
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4893,6 +4893,7 @@ static bool check_noproxy(const char *name, const char *no_proxy) return FALSE; } +#ifndef CURL_DISABLE_HTTP /**************************************************************** * Detect what (if any) proxy to use. Remember that this selects a host * name and is not limited to HTTP proxies only. @@ -4962,6 +4963,7 @@ static char *detect_proxy(struct connectdata *conn) return proxy; } +#endif /* CURL_DISABLE_HTTP */ /* * If this is supposed to use a proxy, we need to figure out the proxy |