diff --git a/browserf.go b/browserf.go index d6e7fe7..48ec1be 100644 --- a/browserf.go +++ b/browserf.go @@ -193,7 +193,7 @@ func (r *BrowserFService) WriteFile(ctx context.Context, id string, contents io. return } path := fmt.Sprintf("browsers/%s/fs/write_file", id) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, nil, nil, opts...) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, body, nil, opts...) return }