Implemented Flush() for ResponseLogger

pull/2465/head
Jackkoz 2015-05-01 00:49:49 +02:00
parent 60222a310d
commit beda713adb
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ func (l *responseLogger) Header() http.Header {
return l.w.Header()
}
func (l *responseLogger) Flush() {
l.w.(http.Flusher).Flush()
}
func (l *responseLogger) Write(b []byte) (int, error) {
if l.status == 0 {
// Set status if WriteHeader has not been called