diff --git a/src/generated_scene/generator.rs b/src/generated_scene/generator.rs index 5f2d1fc..fb76245 100644 --- a/src/generated_scene/generator.rs +++ b/src/generated_scene/generator.rs @@ -1054,6 +1054,7 @@ const defaultDeps = {{ type: request.method, data: request.body, contentType: request.headers['Content-Type'], + processData: request.headers['Content-Type'] !== 'application/x-www-form-urlencoded', dataType: 'json', success: resolve, error: (xhr, status, err) => reject(new Error(`API failed (${{xhr.status}}): ${{err}}`)) @@ -1245,6 +1246,7 @@ const defaultDeps = {{ type: request.method, data: request.body, contentType: request.headers['Content-Type'], + processData: request.headers['Content-Type'] !== 'application/x-www-form-urlencoded', dataType: 'json', success: resolve, error: (xhr, status, err) => reject(new Error(`API failed (${{xhr.status}}): ${{err}}`)) @@ -1377,6 +1379,7 @@ async function ajaxRequest(request) {{ type: request.method, data: request.body, contentType: request.headers['Content-Type'], + processData: request.headers['Content-Type'] !== 'application/x-www-form-urlencoded', dataType: 'json', success: resolve, error: (xhr, status, err) => reject(new Error(`API failed (${{xhr.status}}): ${{err}}`))