Update webpagetool.php

This commit is contained in:
Namhyeon Go 2018-11-26 19:41:36 +09:00 committed by GitHub
parent 2125379aee
commit 39a6c84c9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,6 +238,10 @@ if(!function_exists("get_web_curl")) {
$options[CURLOPT_URL] = get_web_build_qs($url, $data); $options[CURLOPT_URL] = get_web_build_qs($url, $data);
} }
if(count($headers) > 0) {
$options[CURLOPT_HTTPHEADER] = $headers;
}
$ch = curl_init(); $ch = curl_init();
curl_setopt_array($ch, $options); curl_setopt_array($ch, $options);