From 09de8fdceafde3ce2fda652320f9a47d0faa0fb1 Mon Sep 17 00:00:00 2001 From: Weslei Juan Novaes Pereira Date: Mon, 13 Jan 2020 18:42:04 -0300 Subject: [PATCH] Added default header --- go.mod | 5 +---- logger.go | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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)