Skip to content

Commit

Permalink
fix: fixed webhook content-type (closes #253)
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Sep 27, 2021
1 parent 5b65b60 commit 5bbd1a0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1880,12 +1880,10 @@ class ForwardEmail {
.post(recipient.webhook)
.set('User-Agent', this.config.userAgent)
.timeout(this.config.timeout)
.send(
safeStringify({
...mail,
raw: _.isBuffer(raw) ? raw.toString('binary') : raw
})
);
.send({
...mail,
raw: _.isBuffer(raw) ? raw.toString('binary') : raw
});

// TODO: smart alerts here for webhooks misconfigured (e.g. HTTP -> HTTPS redirect)
if (
Expand Down

0 comments on commit 5bbd1a0

Please sign in to comment.