From 163d435372850c8c7c8ae7c3f957741aff747871 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Thu, 23 Nov 2017 18:03:36 +0100 Subject: Add missing "in" argument for HTTP put function. --- golib/httpclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/golib/httpclient.go b/golib/httpclient.go index d8d0452..24cfed1 100644 --- a/golib/httpclient.go +++ b/golib/httpclient.go @@ -157,8 +157,8 @@ func (c *HTTPClient) Post(url string, in interface{}, out interface{}) error { } // Put Send a Put request to client and return directly data of body response -func (c *HTTPClient) Put(url string, out interface{}) error { - return c._Request("PUT", url, nil, out) +func (c *HTTPClient) Put(url string, in interface{}, out interface{}) error { + return c._Request("PUT", url, in, out) } // Delete Send a Delete request to client and return directly data of body response -- cgit 1.2.3-korg