优化结构
This commit is contained in:
@@ -37,3 +37,9 @@ func TestCORSConsumesMatchedWhitelistPreflight(t *testing.T) {
|
||||
t.Fatalf("matched whitelist preflight status = %d, want %d", response.Code, http.StatusNoContent)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCORSStrictWhitelistAllowsPrefixedHealth(t *testing.T) {
|
||||
if !isHealthPath("/admin/health") {
|
||||
t.Fatal("prefixed health endpoint was not recognized by strict whitelist")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user