Update go-e.go

fixed localResponse URI
This commit is contained in:
tmeidinger 2020-06-22 15:28:48 +02:00 • committed by GitHub
parent 279dfe63a6
commit 95e21904fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ func (c *GoE) localResponse(function, payload string) (goeStatusResponse, error)
url := fmt.Sprintf("%s/%s", c.uri, function)
if payload != "" {
url += "&payload=" + payload
url += "?payload=" + payload
}
_, err := c.GetJSON(url, &status)