Skip to content

Commit

Permalink
body should already be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgoeke committed May 2, 2024
1 parent 84a0a58 commit 121d205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 121d205

Please sign in to comment.