summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-23 18:03:36 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-23 18:03:36 +0100
commit163d435372850c8c7c8ae7c3f957741aff747871 (patch)
treea0783f832a527e1850856a0d6699b0c4ee58aac1
parent4c12981797f1e37134d421743ffdc4f847ed46be (diff)
Add missing "in" argument for HTTP put function.v0.1.6
-rw-r--r--golib/httpclient.go4
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