Update webpagetool.php

This commit is contained in:
Namhyeon Go 2019-11-12 15:49:58 +09:00 committed by GitHub
parent 737afe81a3
commit 73f56ccc7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,7 +417,7 @@ if(!check_function_exists("get_web_page")) {
"jsonrpc" => "1.1"
), $data)
);
$content = get_web_page($url, $method, $_data, $proxy, $ua, $ct_out, $t_out);
$content = get_web_page($url, "jsondata", $_data, $proxy, $ua, $ct_out, $t_out);
} elseif(in_array("jsonrpc2", $res_method)) {
$_data = array(
"headers" => array(
@ -429,7 +429,7 @@ if(!check_function_exists("get_web_page")) {
"params" => get_value_in_array("params", $data)
)
);
$content = get_web_page($url, $method, $_data, $proxy, $ua, $ct_out, $t_out);
$content = get_web_page($url, "jsondata", $_data, $proxy, $ua, $ct_out, $t_out);
} else {
$_result = get_web_curl($url, $method, $data, $proxy, $ua, $ct_out, $t_out, $headers);
$content = $_result['content'];