From 121d205c87f33e9bae73469192f4338b293a1130 Mon Sep 17 00:00:00 2001 From: Michael Goeke Date: Thu, 2 May 2024 12:06:13 -0700 Subject: [PATCH] body should already be a string --- src/testCommon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testCommon.js b/src/testCommon.js index efabf82..7f28108 100644 --- a/src/testCommon.js +++ b/src/testCommon.js @@ -10,7 +10,7 @@ export function httpRequest(method, url, body, params = {}) { if (method === 'POST') params.timeout = (params.timeout !== undefined ? params.timeout : 600000); //default to 10m timeout instead of 60s implicit default - const res = http.request(method, url, JSON.stringify(body), params); + const res = http.request(method, url, body, params); const isSuccessCode = (res.status >= 200 && res.status < 400); if (!isSuccessCode) {