Commit 977b84f
committed
fix(hepa): strip path from Kong service URL in BuildKongServiceReq
When SDK re-registers APIs after service redeployment, the RedirectAddr
contains both host and path (e.g. http://host:8080/retail-mall/acl-web).
This path was being set as Kong service.path, causing Kong to prepend it
to upstream requests, resulting in 404 errors.
Strip the path unconditionally so Kong service.path is always "/". This
does not affect the "流量入口" (endpoint API) flow which uses its own
createKongServiceReq function with AdjustRedirectAddr.1 parent d31c282 commit 977b84f
1 file changed
Lines changed: 7 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| |||
0 commit comments