|
@@ -11,7 +11,7 @@ defined('InShopNC') or exit('Access Invalid!');
|
|
|
|
|
|
function http_request($url, $params = array(), $method = 'GET', $multi = false, $extheaders = array())
|
|
|
{
|
|
|
- if (!function_exists('curl_init')) {
|
|
|
+ if (!function_exists('curl_init')) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -25,7 +25,7 @@ function http_request($url, $params = array(), $method = 'GET', $multi = false,
|
|
|
curl_setopt($ci, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
|
|
|
|
|
$headers = (array) $extheaders;
|
|
|
- switch ($method)
|
|
|
+ switch ($method)
|
|
|
{
|
|
|
case 'POST':
|
|
|
curl_setopt($ci, CURLOPT_POST, TRUE);
|