1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 06:10:39 +00:00

fix the gofmt

This commit is contained in:
astaxie
2014-10-31 15:48:57 +08:00
parent 94c84b846f
commit 945b1da3a8
2 changed files with 49 additions and 3 deletions

View File

@ -150,12 +150,12 @@ type WSController struct {
}
var upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
ReadBufferSize: 1024,
WriteBufferSize: 1024,
}
func (this *WSController) Get() {
ws, err := upgrader.Upgrade(this.Ctx.ResponseWriter, this.Ctx.Request,nil)
ws, err := upgrader.Upgrade(this.Ctx.ResponseWriter, this.Ctx.Request, nil)
if _, ok := err.(websocket.HandshakeError); ok {
http.Error(this.Ctx.ResponseWriter, "Not a websocket handshake", 400)
return