* [misc] json_encode $data in put method

This commit is contained in:
wanshan
2025-09-10 11:57:37 +08:00
parent b541d82f54
commit 19dbdf333f
+1
View File
@@ -117,6 +117,7 @@ class rest
{
$headers['Accept'] = 'application/json';
$headers['Content-Type'] = 'application/json';
$data = json_encode($data);
$resp = requests::put($this->base . $url, $headers, $data, $options = array());
try