lint: gocritic/httpNoBody (#3493)

* lint: gocritic/httpNoBody
This commit is contained in:
mmetc 2025-03-07 14:35:25 +01:00 committed by GitHub
parent a203d8ebbf
commit 12a3c70860
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 34 additions and 36 deletions

View file

@ -314,7 +314,7 @@ func TestJA4H(t *testing.T) {
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
req, err := http.NewRequest(test.method, test.url, nil)
req, err := http.NewRequest(test.method, test.url, http.NoBody)
if err != nil {
t.Fatalf("Failed to create request: %s", err)
}