Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Z-Bolt/OctoScreen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'octoprintApis/CustomCommandsRequest.go')
-rwxr-xr-xoctoprintApis/CustomCommandsRequest.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/octoprintApis/CustomCommandsRequest.go b/octoprintApis/CustomCommandsRequest.go
index 485533b..95f32f6 100755
--- a/octoprintApis/CustomCommandsRequest.go
+++ b/octoprintApis/CustomCommandsRequest.go
@@ -16,15 +16,15 @@ type CustomCommandsRequest struct{}
// Do sends an API request and returns the API response.
func (cmd *CustomCommandsRequest) Do(c *Client) (*dataModels.CustomCommandsResponse, error) {
- b, err := c.doJsonRequest("GET", PrinterCommandCustomApiUri, nil, nil)
+ bytes, err := c.doJsonRequest("GET", PrinterCommandCustomApiUri, nil, nil, true)
if err != nil {
return nil, err
}
- r := &dataModels.CustomCommandsResponse{}
- if err := json.Unmarshal(b, r); err != nil {
+ response := &dataModels.CustomCommandsResponse{}
+ if err := json.Unmarshal(bytes, response); err != nil {
return nil, err
}
- return r, err
+ return response, err
}