From 2731a3589fe9cce639d645fc534685b6483c500f Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 12 Nov 2019 16:14:27 +0900 Subject: [PATCH] Update webpagetool.php --- helper/webpagetool.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 83c1af6..8f0ac5f 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -408,17 +408,7 @@ if(!check_function_exists("get_web_page")) { if(!($content !== false)) { $content = get_web_cmd($url, "jsondata", $data, $proxy, $ua, $ct_out, $t_out, $headers); } - } elseif(in_array("jsonrpc", $res_method)) { - $_data = array( - "headers" => array( - "Content-Type" => "application/json-rpc" - ), - "data" => array_merge(array( - "jsonrpc" => "1.1" - ), $data) - ); - $content = get_web_page($url, "jsondata", $_data, $proxy, $ua, $ct_out, $t_out); - } elseif(in_array("jsonrpc2", $res_method)) { + } elseif(in_array("jsonrpc", $res_method) || in_array("jsonrpc2", $res_method)) { $_data = array( "headers" => array( "Content-Type" => "application/json-rpc"