소스 검색

Fixed HDSv2 execute url escape bug

Toby Chui 3 년 전
부모
커밋
53e188aad4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)