From 48ea877cd58b6f36834249825c95c0597c914ec8 Mon Sep 17 00:00:00 2001 From: "Patrick J. McNerthney" Date: Thu, 1 Apr 2021 04:27:46 -1000 Subject: [PATCH] Use a POST with a form body when querying Prometheus. (#2401) Fixes: https://github.com/lensapp/lens/issues/1352 Signed-off-by: Patrick J McNerthney --- src/main/cluster.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/cluster.ts b/src/main/cluster.ts index 19f0945c3e..eee88cd6db 100644 --- a/src/main/cluster.ts +++ b/src/main/cluster.ts @@ -518,7 +518,8 @@ export class Cluster implements ClusterModel, ClusterState { timeout: 0, resolveWithFullResponse: false, json: true, - qs: queryParams, + method: "POST", + form: queryParams, }); }