Skip to content

Commit

Permalink
Merge pull request #277 from mixpanel/jared-uri-encode-body
Browse files Browse the repository at this point in the history
encodeURIComponent body JSON data
  • Loading branch information
jaredmixpanel authored Nov 21, 2024
2 parents 682232c + adba2ba commit fe6c5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/mixpanel-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const MixpanelNetwork = (() => {
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
body: `data=${JSON.stringify(data)}`,
body: `data=${encodeURIComponent(JSON.stringify(data))}`,
});

const responseBody = await response.json();
Expand Down

0 comments on commit fe6c5fb

Please sign in to comment.