Skip to content

Commit

Permalink
Headers added for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Feb 19, 2023
1 parent bf13d0e commit 57bdb2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default class Custom extends Command {
let body = "";
const headers = trigger.headers ??= {};
if (typeof trigger.body === "object") {
trigger.body = JSON.stringify(trigger.body);
body = JSON.stringify(trigger.body);
headers["content-type"] = "application/json";
}
const r = new Request(trigger.url, {
Expand Down

0 comments on commit 57bdb2d

Please sign in to comment.