1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-05 00:58:47 +02:00

Bug in gzip, fixed #95, #96.

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2015-06-09 15:24:01 -07:00
parent 1ac5425ec4
commit ae721bd2b2
5 changed files with 41 additions and 15 deletions

View File

@ -0,0 +1,18 @@
package main
import (
"github.com/labstack/echo"
"io"
mw "github.com/labstack/echo/middleware"
)
func main() {
e := echo.New()
e.Use(mw.Logger())
e.Use(mw.Gzip())
e.WebSocket("/ws", func(c *echo.Context) error {
io.Copy(c.Socket(), c.Socket())
return nil
})
e.Run(":1323")
}