mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-03 19:32:48 +02:00
change Policy.Matches to accept a URL pointer (#5360)
This commit is contained in:
parent
9cd5fe4e25
commit
177f789e63
5 changed files with 9 additions and 9 deletions
|
@ -25,7 +25,7 @@ func TestFromURLMatchesRequestURL(t *testing.T) {
|
|||
} {
|
||||
fromURL := urlutil.MustParseAndValidateURL(tc.pattern)
|
||||
requestURL := urlutil.MustParseAndValidateURL(tc.input)
|
||||
assert.Equal(t, tc.matches, FromURLMatchesRequestURL(&fromURL, &requestURL, true),
|
||||
assert.Equal(t, tc.matches, FromURLMatchesRequestURL(fromURL, requestURL, true),
|
||||
"from-url: %s\nrequest-url: %s", tc.pattern, tc.input)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue