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/PrinterProfilesRequest.go')
-rwxr-xr-xoctoprintApis/PrinterProfilesRequest.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/octoprintApis/PrinterProfilesRequest.go b/octoprintApis/PrinterProfilesRequest.go
index 675f5ba..6c8b622 100755
--- a/octoprintApis/PrinterProfilesRequest.go
+++ b/octoprintApis/PrinterProfilesRequest.go
@@ -16,15 +16,15 @@ type PrinterProfilesRequest struct {
// Do sends an API request and returns the API response.
func (cmd *PrinterProfilesRequest) Do(c *Client) (*dataModels.PrinterProfileResponse, error) {
uri := fmt.Sprintf("/api/printerprofiles/%s", cmd.Id)
- b, err := c.doJsonRequest("GET", uri, nil, nil)
+ bytes, err := c.doJsonRequest("GET", uri, nil, nil, true)
if err != nil {
return nil, err
}
- r := &dataModels.PrinterProfileResponse{}
- if err := json.Unmarshal(b, r); err != nil {
+ response := &dataModels.PrinterProfileResponse{}
+ if err := json.Unmarshal(bytes, response); err != nil {
return nil, err
}
- return r, err
+ return response, err
}