summaryrefslogtreecommitdiff
path: root/caddytest/integration/stream_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest/integration/stream_test.go')
-rw-r--r--caddytest/integration/stream_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/caddytest/integration/stream_test.go b/caddytest/integration/stream_test.go
index 09d4f64..6bc612d 100644
--- a/caddytest/integration/stream_test.go
+++ b/caddytest/integration/stream_test.go
@@ -176,9 +176,7 @@ func testH2ToH2CStreamServeH2C(t *testing.T) *http.Server {
w.Header().Set("Cache-Control", "no-store")
w.WriteHeader(200)
- if f, ok := w.(http.Flusher); ok {
- f.Flush()
- }
+ http.NewResponseController(w).Flush()
buf := make([]byte, 4*1024)