Add tests for obfuscated2 clientside

This commit is contained in:
9seconds
2021-03-22 11:34:32 +03:00
parent 4d2d21e101
commit 69203f3e23
21 changed files with 320 additions and 22 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ import (
"context"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"net/url"
@@ -216,7 +215,7 @@ func (f *Firehol) updateRemoteURL(ctx context.Context, url string,
}(ctx, resp.Body)
defer func(rc io.ReadCloser) {
io.Copy(ioutil.Discard, rc) // nolint: errcheck
io.Copy(io.Discard, rc) // nolint: errcheck
rc.Close()
}(resp.Body)