Commit d0e956c
authored
fix(http/route): fix prefix path validation (#4175)
Fixes linkerd/linkerd2#14110
When using a `HTTPRoute` `RequestRedirect` filter with a `ReplacePrefixMatch`, the proxy incorrectly returns an error: `redirect paths must be absolute`. This is because the validation logic is backwards and it returns this error when the redirect path IS absolute.
We correct the validation logic by inverting it.
Signed-off-by: Alex Leong <[email protected]>1 parent 0060a4c commit d0e956c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
0 commit comments