Skip to content

Commit 8159cac

Browse files
Added condition for Proxy authentication validation
1 parent b867df0 commit 8159cac

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Support/Utility.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -421,18 +421,18 @@ public static function send_request($queryObject = '', $type = '')
421421
// Set the port
422422
curl_setopt($http, CURLOPT_PROXYPORT, $proxy_details['port']);
423423

424-
}
425-
}
426-
if(array_***_exists("username",$proxy_details) && array_***_exists("password",$proxy_details)){
427-
if($proxy_details['username'] != '' && $proxy_details['password'] != '') {
424+
if(array_***_exists("username",$proxy_details) && array_***_exists("password",$proxy_details)){
425+
if($proxy_details['username'] != '' && $proxy_details['password'] != '') {
428426

429-
$proxyauth = $proxy_details['username'].":".$proxy_details['password'];
430-
// Set the username and password
431-
curl_setopt($http, CURLOPT_PROXYUSERPWD, $proxyauth);
432-
427+
$proxyauth = $proxy_details['username'].":".$proxy_details['password'];
428+
// Set the username and password
429+
curl_setopt($http, CURLOPT_PROXYUSERPWD, $proxyauth);
430+
431+
}
432+
}
433433
}
434434
}
435-
435+
436436
$response = curl_exec($http);
437437
// status code extraction
438438
$httpcode = curl_getinfo($http, CURLINFO_HTTP_CODE);

0 commit comments

Comments
 (0)