From ef7c344f6a204a4de0b31aa9b9621caad792a7fb Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 23 Feb 2007 08:03:24 +0000 Subject: [PATCH] - allow setting proxy to empty string, which ignores env --- http_request_api.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/http_request_api.c b/http_request_api.c index e574eee..280302e 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -481,9 +481,7 @@ PHP_HTTP_API STATUS _http_request_prepare(http_request *request, HashTable *opti /* proxy */ if ((zoption = http_request_option(request, options, "proxyhost", IS_STRING))) { - if (Z_STRLEN_P(zoption)) { - HTTP_CURL_OPT(CURLOPT_PROXY, Z_STRVAL_P(zoption)); - } + HTTP_CURL_OPT(CURLOPT_PROXY, Z_STRVAL_P(zoption)); /* type */ if ((zoption = http_request_option(request, options, "proxytype", IS_LONG))) { HTTP_CURL_OPT(CURLOPT_PROXYTYPE, Z_LVAL_P(zoption)); -- 2.30.2