a41f938cec
As we have seen, dependencies version can prevent the build. We should user lock versions on dependencies that we know work: * Packages are vendored * Add Godep support * Added addtional install step in readme * Fix travis build error
21 lignes
368 o
Go
21 lignes
368 o
Go
// +build go1.8
|
|
|
|
package handlers
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
type loggingResponseWriter interface {
|
|
commonLoggingResponseWriter
|
|
http.Pusher
|
|
}
|
|
|
|
func (l *responseLogger) Push(target string, opts *http.PushOptions) error {
|
|
p, ok := l.w.(http.Pusher)
|
|
if !ok {
|
|
return fmt.Errorf("responseLogger does not implement http.Pusher")
|
|
}
|
|
return p.Push(target, opts)
|
|
}
|