Implement own byte buffer type

This commit is contained in:
Ingo Oppermann
2024-10-10 16:35:39 +02:00
parent a581f1dbc2
commit 719449a4c8
20 changed files with 217 additions and 217 deletions

View File

@@ -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)
}