Skip to content

Commit

Permalink
take compression back out
Browse files Browse the repository at this point in the history
breaks event source, no obvious reason (possibly gzip writer
closing when handler func returns, but preventing that didn't help)

reopens mailhog/MailHog#61
  • Loading branch information
ian-kent committed Oct 6, 2015
1 parent 183e2d6 commit 066a2df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 066a2df

Please sign in to comment.