From 7cdc02e8172d4f9c127dc4beb962dea312525145 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 12 Nov 2019 16:04:53 +0900 Subject: [PATCH] Update webpagetool.php --- helper/webpagetool.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 3cb5a81..83c1af6 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -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 {