Skip to content

Commit

Permalink
fix: add content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Netail committed Feb 5, 2024
1 parent ad42241 commit a067032
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/helpers/send-payload.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ export const sendPayload = async (
return { key, success: true };
}

debug(`Sending ${key} payload to`);

const response = await fetch(url, {
method: 'POST',
body: JSON.stringify(payload),
headers: {
'Content-Type': 'application/json',
},
});

if (response.ok) {
Expand Down

0 comments on commit a067032

Please sign in to comment.