mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: Preserve trailing slash in plugin proxy (#86859)
* Plugins: Preserve trailing slash in plugin proxy * enable toggle by default
This commit is contained in:
committed by
GitHub
parent
17f03882d4
commit
fe3e5917f1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user