From c006fc1a9bc99ee3b1a08cde5a1f321e36c15ce8 Mon Sep 17 00:00:00 2001 From: Adam Duke <94930+adamvduke@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:01:38 -0500 Subject: [PATCH] tests: remove superflous WriteHeader call from buffer tests (#246) --- 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()