Skip to content

Commit

Permalink
Fix escaped strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Ibragimov committed Apr 20, 2022
1 parent 18aa549 commit a4dd9c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function sendRequestToES(args: EsRequestArgs): Promise<ESRequestResult[]>
if (body instanceof ArrayBuffer) {
value = body;
} else {
value = JSON.stringify(body, null, 2);
value = typeof body === 'string' ? body : JSON.stringify(body, null, 2);
}

const warnings = response.headers.get('warning');
Expand Down

0 comments on commit a4dd9c0

Please sign in to comment.