From fbab858004f28f51bbfbb07067257a90e1c8ff3e Mon Sep 17 00:00:00 2001 From: maggie44 <64841595+maggie44@users.noreply.github.com> Date: Fri, 18 Oct 2024 18:05:53 +0100 Subject: [PATCH] Remove test for requestMethodUsuallyLacksBody --- connection/quic_test.go | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/connection/quic_test.go b/connection/quic_test.go index 0a54e345..92330b9b 100644 --- a/connection/quic_test.go +++ b/connection/quic_test.go @@ -566,43 +566,6 @@ func TestBuildHTTPRequest(t *testing.T) { }, body: io.NopCloser(&bytes.Buffer{}), }, - { - name: "if the http method usually has body, don't set body to empty", - connectRequest: &pogs.ConnectRequest{ - Dest: "http://test.com", - Metadata: []pogs.Metadata{ - { - Key: "HttpHeader:Another-Header", - Val: "Misc", - }, - { - Key: "HttpHost", - Val: "cf.host", - }, - { - Key: "HttpMethod", - Val: "post", - }, - }, - }, - req: &http.Request{ - Method: "post", - URL: &url.URL{ - Scheme: "http", - Host: "test.com", - }, - Proto: "HTTP/1.1", - ProtoMajor: 1, - ProtoMinor: 1, - Header: http.Header{ - "Another-Header": []string{"Misc"}, - }, - ContentLength: 0, - Host: "cf.host", - Body: io.NopCloser(&bytes.Buffer{}), - }, - body: io.NopCloser(&bytes.Buffer{}), - }, } log := zerolog.Nop()