We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 698a673 commit 8cbd3c8Copy full SHA for 8cbd3c8
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