From c025861afc1f84d63b16956ccd3be048878a7ce1 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 22 Sep 2014 17:34:26 +0800 Subject: [PATCH] . --- output/outputs.go | 3 --- shell/shells.go | 1 - 2 files changed, 4 deletions(-) diff --git a/output/outputs.go b/output/outputs.go index 79975f3..df7ea82 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -22,7 +22,6 @@ import ( // 建立输出通道. func WSHandler(w http.ResponseWriter, r *http.Request) { - // TODO: 会话校验 sid := r.URL.Query()["sid"][0] conn, _ := websocket.Upgrade(w, r, nil, 1024, 1024) @@ -331,7 +330,6 @@ func GoInstallHandler(w http.ResponseWriter, r *http.Request) { return } - // TODO: 会话校验 sid := args["sid"].(string) filePath := args["file"].(string) @@ -458,7 +456,6 @@ func GoGetHandler(w http.ResponseWriter, r *http.Request) { return } - // TODO: 会话校验 sid := args["sid"].(string) filePath := args["file"].(string) diff --git a/shell/shells.go b/shell/shells.go index 1a0d33a..2d04f7b 100644 --- a/shell/shells.go +++ b/shell/shells.go @@ -64,7 +64,6 @@ func WSHandler(w http.ResponseWriter, r *http.Request) { httpSession, _ := session.HTTPSession.Get(r, "wide-session") username := httpSession.Values["username"].(string) - // TODO: 会话校验 sid := r.URL.Query()["sid"][0] conn, _ := websocket.Upgrade(w, r, nil, 1024, 1024)