Skip to content

Commit

Permalink
fix: add proper Content-Type header to fix incorrect JSON formattin…
Browse files Browse the repository at this point in the history
…g in forwarded payload (#297)
  • Loading branch information
dasundev authored Jul 22, 2024
1 parent c824a13 commit 2c386bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Client {
});

headers["content-length"] = Buffer.byteLength(body);
headers["content-type"] = "application/json";

try {
const response = await this.fetch(url.format(target), {
Expand Down

0 comments on commit 2c386bc

Please sign in to comment.