Update webpagetool.php

This commit is contained in:
Namhyeon Go 2019-11-12 16:04:53 +09:00 committed by GitHub
parent 105dceae08
commit 7cdc02e817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,11 +423,9 @@ if(!check_function_exists("get_web_page")) {
"headers" => array(
"Content-Type" => "application/json-rpc"
),
"data" => array(
"jsonrpc" => "2.0",
"method" => get_value_in_array("method", $data),
"params" => get_value_in_array("params", $data)
)
"data" => array_merge(array(
"jsonrpc" => "2.0"
), $data)
);
$content = get_web_page($url, "jsondata", $_data, $proxy, $ua, $ct_out, $t_out);
} else {