From 5d15b7c3f48ef8b40005ee8fbb6293a22b167496 Mon Sep 17 00:00:00 2001 From: Adam Duke Date: Mon, 16 Dec 2024 12:07:13 -0500 Subject: [PATCH] remove superflous WriteHeader call from buffer tests --- buffer/buffer_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/buffer/buffer_test.go b/buffer/buffer_test.go index 4d99d13..972692f 100644 --- a/buffer/buffer_test.go +++ b/buffer/buffer_test.go @@ -417,7 +417,6 @@ func TestBuffer_GRPC_OKResponse(t *testing.T) { srv := testutils.NewHandler(func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Grpc-Status", "0" /* OK */) _, _ = w.Write([]byte("grpc-body")) - w.WriteHeader(http.StatusOK) // To skip the "Content-Length" header. w.(http.Flusher).Flush()