diff options
Diffstat (limited to 'octoprintApis/ToolTargetRequest.go')
-rwxr-xr-x | octoprintApis/ToolTargetRequest.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/octoprintApis/ToolTargetRequest.go b/octoprintApis/ToolTargetRequest.go index 34678c0..125dd42 100755 --- a/octoprintApis/ToolTargetRequest.go +++ b/octoprintApis/ToolTargetRequest.go @@ -20,12 +20,12 @@ type ToolTargetRequest struct { // Do sends an API request and returns an error if any. func (cmd *ToolTargetRequest) Do(c *Client) error { - b := bytes.NewBuffer(nil) - if err := cmd.encode(b); err != nil { + buffer := bytes.NewBuffer(nil) + if err := cmd.encode(buffer); err != nil { return err } - _, err := c.doJsonRequest("POST", PrinterToolApiUri, b, PrintToolErrors) + _, err := c.doJsonRequest("POST", PrinterToolApiUri, buffer, PrintToolErrors, true) return err } |