diff --git a/go.mod b/go.mod index 395f4d9..e53cf82 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,4 @@ module github.com/gorilla/mux go 1.12 -require ( - github.com/gorilla/mux v1.7.3 - github.com/stretchr/testify v1.4.0 -) +require github.com/stretchr/testify v1.4.0 diff --git a/logger.go b/logger.go index caad512..e181d71 100644 --- a/logger.go +++ b/logger.go @@ -108,7 +108,7 @@ func LoggerWithConfig(c LogConfig) MiddlewareFunc { sw := statusWriter{ ResponseWriter: w, - status: 0, + status: 200, } next.ServeHTTP(&sw, r)