Skip to content

Commit 13fe580

Browse files
committed
Fix JSON parsing for python requests
1 parent 4fd58d7 commit 13fe580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/targets/python/requests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = function (source, options) {
5656
switch (source.postData.mimeType) {
5757
case 'application/json':
5858
if (source.postData.jsonObj) {
59-
code.push('payload = %s', helpers.literalRepresentation(source.postData.jsonObj, opts))
59+
code.push('payload = %s', JSON.stringify(source.postData.jsonObj))
6060
jsonPayload = true
6161
hasPayload = true
6262
}

0 commit comments

Comments
 (0)