- allow setting proxy to empty string, which ignores env
authorMichael Wallner <mike@php.net>
Fri, 23 Feb 2007 08:03:24 +0000 (08:03 +0000)
committerMichael Wallner <mike@php.net>
Fri, 23 Feb 2007 08:03:24 +0000 (08:03 +0000)
http_request_api.c

index e574eee870f908239c0168e3c650f263a81a5130..280302e99ccd92dcbcdd6931003e8c0ccf16bedc 100644 (file)
@@ -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));