From 066a2dfd9d8bf7a94a2df4e1b4b9db3556b56bbb Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Tue, 6 Oct 2015 20:19:25 +0100 Subject: [PATCH] take compression back out breaks event source, no obvious reason (possibly gzip writer closing when handler func returns, but preventing that didn't help) reopens mailhog/MailHog#61 --- server.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server.go b/server.go index 91b39b2..6c7e7c2 100644 --- a/server.go +++ b/server.go @@ -9,7 +9,6 @@ import ( "strings" "github.com/gorilla/pat" - "github.com/gorilla/handlers" "github.com/ian-kent/go-log/log" "golang.org/x/crypto/bcrypt" ) @@ -103,8 +102,8 @@ func Listen(httpBindAddr string, Asset func(string) ([]byte, error), exitCh chan pat := pat.New() registerCallback(pat) - compress := handlers.CompressHandler(pat) - auth := BasicAuthHandler(compress) + //compress := handlers.CompressHandler(pat) + auth := BasicAuthHandler(pat) //compress) err := http.ListenAndServe(httpBindAddr, auth) if err != nil {