Closed johakoch closed 1 year ago
Fixed endpoint wildcard/proxy wildcard combination where wildcard matches "":
""
endpoint "/**" { proxy { backend { origin = "http://localhost:8081" path = "/**" } } } endpoint "/a/**" { proxy { backend { origin = "http://localhost:8081" path = "/b/**" } } }
before:
GET /
GET /**
GET /a
GET /b/**
now:
GET /b
BTW, without
path = "/**"
in the first endpoint, the backend request path was ok.
Non-empty-matches were ok, too:
GET /c
GET /a/c
GET /b/c
I'll rebase to release.1.11
Fixed endpoint wildcard/proxy wildcard combination where wildcard matches
""
:before:
GET /
-> backend requestGET /**
GET /a
-> backend requestGET /b/**
now:
GET /
-> backend requestGET /
GET /a
-> backend requestGET /b
BTW, without
in the first endpoint, the backend request path was ok.
Non-empty-matches were ok, too:
GET /c
-> backend requestGET /c
GET /a/c
-> backend requestGET /b/c
Reviewer checklist