Browse Source

Fixed HDSv2 execute url escape bug

Toby Chui 3 years ago
parent
commit
53e188aad4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mod/iot/hdsv2/hdsv2.go

+ 1 - 1
mod/iot/hdsv2/hdsv2.go

@@ -134,7 +134,7 @@ func (h *Handler) Execute(device *iot.Device, endpoint *iot.Endpoint, payload in
 
 	} else {
 		//Payload exists. Append it to the end with value=?
-		targetURL += "?value=" + payload.(string)
+		targetURL += "?value=" + url.QueryEscape(payload.(string))
 	}
 
 	result, err := tryGet(targetURL)