refactor: Use Statefull interface in access log.
This commit is contained in:
parent
18c3d8dc62
commit
7399a83c74
1 changed files with 3 additions and 4 deletions
|
@ -5,13 +5,12 @@ import (
|
|||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
|
||||
"github.com/containous/traefik/middlewares"
|
||||
)
|
||||
|
||||
var (
|
||||
_ http.ResponseWriter = &captureResponseWriter{}
|
||||
_ http.Hijacker = &captureResponseWriter{}
|
||||
_ http.Flusher = &captureResponseWriter{}
|
||||
_ http.CloseNotifier = &captureResponseWriter{}
|
||||
_ middlewares.Stateful = &captureResponseWriter{}
|
||||
)
|
||||
|
||||
// captureResponseWriter is a wrapper of type http.ResponseWriter
|
||||
|
|
Loading…
Reference in a new issue