We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96c1d0b + 8feb433 commit 7b7efffCopy full SHA for 7b7efff
src/lib/generateCode/targets/python.js
@@ -20,12 +20,12 @@ function parseBody(body) {
20
}
21
22
if (mime === 'application/json' && body.text) {
23
- return `payload = ${JSON.stringify(JSON.parse(body.text), null, 2)}`;
+ return `payload = ${JSON.stringify(JSON.parse(body.text), null, 2)}\n\nfiles = null`;
24
25
26
return body.text
27
- ? `payload = '${body.text}'`
28
- : null;
+ ? `payload = '${body.text}'\n\nfiles = null`
+ : 'files = null';
29
30
31
export default function python(url, req) {
0 commit comments