diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-11-23 18:03:36 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-11-23 18:03:36 +0100 |
commit | 163d435372850c8c7c8ae7c3f957741aff747871 (patch) | |
tree | a0783f832a527e1850856a0d6699b0c4ee58aac1 /golib/httpclient.go | |
parent | 4c12981797f1e37134d421743ffdc4f847ed46be (diff) |
Add missing "in" argument for HTTP put function.v0.1.6
Diffstat (limited to 'golib/httpclient.go')
-rw-r--r-- | golib/httpclient.go | 4 |
1 files 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 |