From b4934c3c5a75bfaf41bfc1c2535c805efc49ab80 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 23 Oct 2014 13:56:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=87=BA=E7=AA=97=E5=8F=A3=E7=9D=80?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- output/outputs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/outputs.go b/output/outputs.go index 341f682..2e3981a 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -146,7 +146,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) { wsChannel := session.OutputWS[sid] channelRet["cmd"] = "run-done" - channelRet["output"] = string(buf[:count]) + channelRet["output"] = "
" + string(buf[:count]) + "
" err := wsChannel.Conn.WriteJSON(&channelRet) if nil != err { glog.Error(err)