mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-03 00:49:27 +00:00
Use gin-gonic/contrib/secure instead of deprecated module
This commit is contained in:
@ -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"))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user