mirror of
https://github.com/datarhei/core.git
synced 2025-12-24 13:07:56 +08:00
Implement own byte buffer type
This commit is contained in:
@@ -243,7 +243,7 @@ func (a *api) Monitor(id string, monitordata MonitorData) (MonitorResponse, erro
|
||||
}
|
||||
*/
|
||||
|
||||
response, err := a.callWithRetry(http.MethodPut, "api/v1/core/monitor/"+id, data)
|
||||
response, err := a.callWithRetry(http.MethodPut, "api/v1/core/monitor/"+id, data.Reader())
|
||||
if err != nil {
|
||||
return MonitorResponse{}, fmt.Errorf("error sending request: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user