refactor: Use Statefull interface in access log.

This commit is contained in:
Fernandez Ludovic 2017-06-08 21:14:30 +02:00 committed by Ludovic Fernandez
parent 18c3d8dc62
commit 7399a83c74

View file

@ -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