discard errors
This commit is contained in:
1 file changed
+1
-1
@@ -113,7 +113,7 @@ func Authentication(auths []Authenticator, opts ...Option) func(next http.Handle
|
|||||||
// https://github.com/golang/go/issues/15527
|
// https://github.com/golang/go/issues/15527
|
||||||
|
|
||||||
defer r.Body.Close()
|
defer r.Body.Close()
|
||||||
io.Copy(ioutil.Discard, r.Body)
|
_, _ = io.Copy(ioutil.Discard, r.Body)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user