|
|
@ -47,7 +47,7 @@ func Test_secureHeaders(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
secureHeaders(next).ServeHTTP(rr, r)
|
|
|
|
secureHeaders(next).ServeHTTP(rr, r)
|
|
|
|
|
|
|
|
|
|
|
|
rs := rr.Result()
|
|
|
|
rs := rr.Result() //nolint:bodyclose // linters bug
|
|
|
|
|
|
|
|
|
|
|
|
defer func() { _ = rs.Body.Close() }()
|
|
|
|
defer func() { _ = rs.Body.Close() }()
|
|
|
|
|
|
|
|
|
|
|
@ -104,7 +104,7 @@ func TestApplication_tryAuthenticate(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
app.tryAuthenticate(next).ServeHTTP(rr, r)
|
|
|
|
app.tryAuthenticate(next).ServeHTTP(rr, r)
|
|
|
|
|
|
|
|
|
|
|
|
rs := rr.Result()
|
|
|
|
rs := rr.Result() //nolint:bodyclose // linters bug
|
|
|
|
|
|
|
|
|
|
|
|
defer func() { _ = rs.Body.Close() }()
|
|
|
|
defer func() { _ = rs.Body.Close() }()
|
|
|
|
|
|
|
|
|
|
|
@ -122,7 +122,7 @@ func TestApplication_tryAuthenticate(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
app.tryAuthenticate(next).ServeHTTP(rr, r)
|
|
|
|
app.tryAuthenticate(next).ServeHTTP(rr, r)
|
|
|
|
|
|
|
|
|
|
|
|
rs := rr.Result()
|
|
|
|
rs := rr.Result() //nolint:bodyclose // linters bug
|
|
|
|
|
|
|
|
|
|
|
|
defer func() { _ = rs.Body.Close() }()
|
|
|
|
defer func() { _ = rs.Body.Close() }()
|
|
|
|
|
|
|
|
|
|
|
@ -143,7 +143,7 @@ func TestApplication_tryAuthenticate(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
app.tryAuthenticate(next).ServeHTTP(rr, r)
|
|
|
|
app.tryAuthenticate(next).ServeHTTP(rr, r)
|
|
|
|
|
|
|
|
|
|
|
|
rs := rr.Result()
|
|
|
|
rs := rr.Result() //nolint:bodyclose // linters bug
|
|
|
|
|
|
|
|
|
|
|
|
defer func() { _ = rs.Body.Close() }()
|
|
|
|
defer func() { _ = rs.Body.Close() }()
|
|
|
|
|
|
|
|
|
|
|
|