From 125cb10d24298b51ad13d74cc62736096d6441dc Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 11 Nov 2014 23:55:23 +0800 Subject: [PATCH] . --- output/outputs.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/output/outputs.go b/output/outputs.go index 9b87f9f..943b152 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -159,7 +159,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) { if nil != wsChannel { channelRet["cmd"] = "run-done" - channelRet["output"] = "
" + buf + "
" + channelRet["output"] = buf err := wsChannel.Conn.WriteJSON(&channelRet) if nil != err { glog.Error(err) @@ -173,7 +173,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) { } else { if nil != wsChannel { channelRet["cmd"] = "run" - channelRet["output"] = "
" + buf + "
" + channelRet["output"] = buf err := wsChannel.Conn.WriteJSON(&channelRet) if nil != err { glog.Error(err) @@ -201,7 +201,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) { wsChannel := session.OutputWS[sid] channelRet["cmd"] = "run-done" - channelRet["output"] = "
" + buf + "
" + channelRet["output"] = buf err := wsChannel.Conn.WriteJSON(&channelRet) if nil != err { glog.Error(err) @@ -217,7 +217,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) { wsChannel := session.OutputWS[sid] channelRet["cmd"] = "run" - channelRet["output"] = "
" + buf + "
" + channelRet["output"] = buf err := wsChannel.Conn.WriteJSON(&channelRet) if nil != err { glog.Error(err)