diff --git a/src/lib/generateCode/targets/python.js b/src/lib/generateCode/targets/python.js index b563b70..403afb9 100644 --- a/src/lib/generateCode/targets/python.js +++ b/src/lib/generateCode/targets/python.js @@ -20,12 +20,12 @@ function parseBody(body) { } if (mime === 'application/json' && body.text) { - return `payload = ${JSON.stringify(JSON.parse(body.text), null, 2)}`; + return `payload = ${JSON.stringify(JSON.parse(body.text), null, 2)}\n\nfiles = null`; } return body.text - ? `payload = '${body.text}'` - : null; + ? `payload = '${body.text}'\n\nfiles = null` + : 'files = null'; } export default function python(url, req) {