There was an error while loading. Please reload this page.
1 parent d324506 commit 8dd25c3Copy full SHA for 8dd25c3
middleware/compress.go
@@ -119,3 +119,10 @@ func (w *gzipResponseWriter) Flush() {
119
func (w *gzipResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
120
return w.ResponseWriter.(http.Hijacker).Hijack()
121
}
122
+
123
+func (w *gzipResponseWriter) Push(target string, opts *http.PushOptions) error {
124
+if p, ok := w.ResponseWriter.(http.Pusher); ok {
125
+return p.Push(target, opts)
126
+}
127
+return http.ErrNotSupported
128
0 commit comments