Use gin-gonic/contrib/secure instead of deprecated module

This commit is contained in:
2022-05-07 12:40:25 +02:00
parent 1ee7256506
commit ca1d002974
5 changed files with 14 additions and 24 deletions

View File

@ -83,5 +83,8 @@ func TestContainerIntegration(t *testing.T) {
}
assert.NoError(t, json.Unmarshal(body, &router.JSONResponse{}))
assert.Equal(t, "DENY", resp.Header.Get("X-Frame-Options"))
assert.Equal(t, "nosniff", resp.Header.Get("X-Content-Type-Options"))
assert.Equal(t, "1; mode=block", resp.Header.Get("X-Xss-Protection"))
}
}