From 564f277962de2a594e96fbd6750ca1ad9cb12e14 Mon Sep 17 00:00:00 2001 From: Patricio Whittingslow Date: Tue, 28 Jul 2026 23:11:25 -0300 Subject: [PATCH] run go fix --- http/httphi/exchange_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/http/httphi/exchange_test.go b/http/httphi/exchange_test.go index 6e4dcba..ae7afb3 100644 --- a/http/httphi/exchange_test.go +++ b/http/httphi/exchange_test.go @@ -4,6 +4,7 @@ import ( "context" "errors" "io" + "slices" "strconv" "strings" @@ -958,10 +959,8 @@ func serveMultipart(t *testing.T, request string, bufSize int, discard []string, sm.Reset(1) sm.Handle("/f", func(exch *Exchange) { newSink := func(hdr *httpraw.MultipartHeader) io.WriteCloser { - for _, name := range discard { - if string(hdr.Name) == name { - return nil // Discard this part's content. - } + if slices.Contains(discard, string(hdr.Name)) { + return nil // Discard this part's content. } return new(partBuffer) }