gzip icon indicating copy to clipboard operation
gzip copied to clipboard

Attempting to use this results in gzipped files downloading

Open JaTochNietDan opened this issue 10 years ago • 3 comments

So when using this it constantly results in my browser downloading a gzipped file. I also get a panic from Martini saying the following:

[martini] PANIC: interface conversion: *martini.responseWriter is not martini.ResponseWriter: missing method Before

My code is as follows:

m := martini.Classic()
m.Use(gzip.All())
m.Use(render.Renderer())

m.Get("/", func() string {
    return "Test"
})

JaTochNietDan avatar Jun 03 '14 16:06 JaTochNietDan