Skip to content

Commit

Permalink
client: get must use empty body (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodmatos authored Aug 24, 2021
1 parent c9022ef commit 363e32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class DatadogApiClient {
const resp = await fetch(url, {
headers: this.headers,
method: opts.method ?? 'GET',
body: opts.body ? JSON.stringify(opts.body) : "",
body: opts.body ? JSON.stringify(opts.body) : undefined,
});

const respBody = await resp.text();
Expand Down

0 comments on commit 363e32f

Please sign in to comment.