Skip to content

Commit fe6c5fb

Browse files
Merge pull request #277 from mixpanel/jared-uri-encode-body
encodeURIComponent body JSON data
2 parents 682232c + adba2ba commit fe6c5fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/mixpanel-network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const MixpanelNetwork = (() => {
2626
headers: {
2727
"Content-Type": "application/x-www-form-urlencoded",
2828
},
29-
body: `data=${JSON.stringify(data)}`,
29+
body: `data=${encodeURIComponent(JSON.stringify(data))}`,
3030
});
3131

3232
const responseBody = await response.json();

0 commit comments

Comments
 (0)