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/ToolTargetRequest.go')
-rwxr-xr-xoctoprintApis/ToolTargetRequest.go6
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
}