mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-14 09:34:43 +00:00
For 3rd parties building binary packages, and for build consistency in general, it is very helpful to have the same set of dependencies at any time the product is built. See [tools/godep](https://github.com/tools/godep) for further details.
16 lines
316 B
Go
16 lines
316 B
Go
//+build go1.8
|
|
|
|
package negroni
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func (rw *responseWriter) Push(target string, opts *http.PushOptions) error {
|
|
pusher, ok := rw.ResponseWriter.(http.Pusher)
|
|
if ok {
|
|
return pusher.Push(target, opts)
|
|
}
|
|
return fmt.Errorf("the ResponseWriter doesn't support the Pusher interface")
|
|
}
|