mirror of
				https://github.com/containous/traefik.git
				synced 2025-10-30 20:24:28 +03:00 
			
		
		
		
	fix hijack logger middleware
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| package middlewares | ||||
|  | ||||
| import ( | ||||
| 	"bufio" | ||||
| 	"fmt" | ||||
| 	log "github.com/Sirupsen/logrus" | ||||
| 	"github.com/streamrail/concurrent-map" | ||||
| @@ -167,6 +168,10 @@ func (lirw *logInfoResponseWriter) Flush() { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func (lirw *logInfoResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) { | ||||
| 	return lirw.rw.(http.Hijacker).Hijack() | ||||
| } | ||||
|  | ||||
| func (lirw *logInfoResponseWriter) GetStatus() int { | ||||
| 	return lirw.status | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user