-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gzip on error does not show error page #2
Comments
Do you have any example code that recreates the issue that I could look at? |
Will make up an example later to try and replicate this, although so far On Tue, Feb 11, 2014 at 3:30 PM, Shane Logsdon [email protected]:
|
@slogsdon this snippet replicates the issue for me. package main
import (
"github.com/codegangsta/martini"
"github.com/martini-contrib/gzip"
)
func main() {
m := martini.Classic()
m.Use(gzip.All())
m.Get("/", func() string {
panic("Oh noes!")
return "Hello world!"
})
m.Run()
} |
@leebrooks0 Thanks for this. It will help in troubleshooting your issues. |
This is an interesting problem. It makes me wonder if it would make more sense for the recovery middleware to get the responsewriter after |
@codegangsta From looking at this, what you're describing should correct the issue. I still need to verify that's true, however. |
Cool. I can look into testing this out sometime this week. Otherwise if one if you want to take a crack at it you are more than welcome to :) |
I went ahead and fixed this in martini core. Please confirm that it works on your end |
Oops sorry been busy with other stuff - will get onto it soon |
If there is a server side error GZip returns a file to the browser named latest, and does not display an error in the browser. If you turn Gzip off then you get an error page in the browser which makes debugging a lot easier than having to switch back to the terminal
The text was updated successfully, but these errors were encountered: