* [misc] json_encode $data in put method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user