Skip to content

Commit 363e32f

Browse files
authored
client: get must use empty body (#2)
1 parent c9022ef commit 363e32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class DatadogApiClient {
5151
const resp = await fetch(url, {
5252
headers: this.headers,
5353
method: opts.method ?? 'GET',
54-
body: opts.body ? JSON.stringify(opts.body) : "",
54+
body: opts.body ? JSON.stringify(opts.body) : undefined,
5555
});
5656

5757
const respBody = await resp.text();

0 commit comments

Comments
 (0)