Plugins: Preserve trailing slash in plugin proxy (#86859)

* Plugins: Preserve trailing slash in plugin proxy

* enable toggle by default
This commit is contained in:
Marcus Efraimsson
2024-06-05 13:36:14 +02:00
committed by GitHub
parent 17f03882d4
commit fe3e5917f1
11 changed files with 72 additions and 1 deletions

View File

@@ -27,6 +27,10 @@ func TestExtractPluginProxyPath(t *testing.T) {
"/api/plugin-proxy/cloudflare-app/with-token/api/v4/accounts",
"with-token/api/v4/accounts",
},
{
"/api/plugin-proxy/cloudflare-app/with-token/api/v4/accounts/",
"with-token/api/v4/accounts/",
},
}
for _, tc := range testCases {
t.Run("Given raw path, should extract expected proxy path", func(t *testing.T) {