mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
fix httpNoBody from go-critic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ func TestPeerCertificateMarshalJSON(t *testing.T) {
|
||||
|
||||
certs := []*x509.Certificate{cert}
|
||||
addr := "www.authz.com/auth"
|
||||
req, err := http.NewRequest(http.MethodGet, addr, nil)
|
||||
req, err := http.NewRequest(http.MethodGet, addr, http.NoBody)
|
||||
assert.NilError(t, err)
|
||||
|
||||
req.RequestURI = addr
|
||||
|
||||
@@ -33,7 +33,7 @@ func TestMiddlewareWrapHandler(t *testing.T) {
|
||||
assert.Assert(t, mdHandler != nil)
|
||||
|
||||
addr := "www.example.com/auth"
|
||||
req, _ := http.NewRequest(http.MethodGet, addr, nil)
|
||||
req, _ := http.NewRequest(http.MethodGet, addr, http.NoBody)
|
||||
req.RequestURI = addr
|
||||
req.Header.Add("header", "value")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user