Skip to content

Commit

Permalink
fix(api): Add missing content type header for Campaign Monitor email …
Browse files Browse the repository at this point in the history
…signup (#16936)
  • Loading branch information
RunarVestmann authored Nov 19, 2024
1 parent 025f1f8 commit ff67649
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ export class CampaignMonitorSignupService {
const obj = Object.fromEntries(map)

return axios
.post(url, obj, { headers: { Authorization: authHeader } })
.post(url, obj, {
headers: {
Authorization: authHeader,
'Content-Type': 'application/json',
},
})
.then((response) => {
return {
subscribed: response?.data?.result === 'error' ? false : true,
Expand Down

0 comments on commit ff67649

Please sign in to comment.