Browse Source

Added default header

pull/545/head
Weslei Juan Novaes Pereira 6 years ago
parent
commit
09de8fdcea
  1. 5
      go.mod
  2. 2
      logger.go

5
go.mod

@ -2,7 +2,4 @@ module github.com/gorilla/mux @@ -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

2
logger.go

@ -108,7 +108,7 @@ func LoggerWithConfig(c LogConfig) MiddlewareFunc { @@ -108,7 +108,7 @@ func LoggerWithConfig(c LogConfig) MiddlewareFunc {
sw := statusWriter{
ResponseWriter: w,
status: 0,
status: 200,
}
next.ServeHTTP(&sw, r)

Loading…
Cancel
Save