瀏覽代碼

Undo last changes

Denis V. Dedkov 9 年之前
父節點
當前提交
c81f885285
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      examples/noolite-web/noolite-web.go

+ 3 - 1
examples/noolite-web/noolite-web.go

@@ -80,7 +80,9 @@ func main() {
 	defer n.Close()
 
 	http.HandleFunc("/noolite/", func(w http.ResponseWriter, r *http.Request) {
-		err := sendCommand(n, parseParams(r.URL.Path[1:]))
+		command, channel, value, red, green, blue := parseParams(r.URL.Path[1:])
+
+		err := sendCommand(n, command, channel, value, red, green, blue)
 
 		if err != nil {
 			fmt.Fprintf(w, "{\"error\": %q}", err)