| 335 | } |
| 336 | |
| 337 | func (cw *compressResponseWriter) Flush() { |
| 338 | if f, ok := cw.writer().(http.Flusher); ok { |
| 339 | f.Flush() |
| 340 | } |
| 341 | // If the underlying writer has a compression flush signature, |
| 342 | // call this Flush() method instead |
| 343 | if f, ok := cw.writer().(compressFlusher); ok { |
| 344 | f.Flush() |
| 345 | |
| 346 | // Also flush the underlying response writer |
| 347 | if f, ok := cw.ResponseWriter.(http.Flusher); ok { |
| 348 | f.Flush() |
| 349 | } |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | func (cw *compressResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) { |
| 354 | if hj, ok := cw.writer().(http.Hijacker); ok { |