fix: Validate x-forwarded-prefix annotation with RegexPathWithCapture (#10598)
This commit is contained in:
parent
9cb3919e84
commit
9cdd51d5dc
3 changed files with 7 additions and 5 deletions
|
|
@ -40,6 +40,7 @@ func TestParse(t *testing.T) {
|
|||
{map[string]string{annotation: "true"}, "true"},
|
||||
{map[string]string{annotation: "1"}, "1"},
|
||||
{map[string]string{annotation: ""}, ""},
|
||||
{map[string]string{annotation: "/$1"}, "/$1"},
|
||||
{map[string]string{}, ""},
|
||||
{nil, ""},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue