From 7e057bc924bdf44780f3b447583ffe4aaf6cf1bb Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Sat, 21 Oct 2017 22:47:12 -0400 Subject: [PATCH] Need to declare content type for app to recognize body as JSON --- app/www/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/www/index.html b/app/www/index.html index 9226230..6538d67 100644 --- a/app/www/index.html +++ b/app/www/index.html @@ -202,6 +202,8 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio" $.ajax({ method : 'POST', url : '/frame', + contentType: 'application/json; charset=utf-8', + dataType : 'json', success : web.frameSuccess }); } @@ -218,6 +220,7 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio" method : 'POST', url : '/dir', body : JSON.stringify({ dir : dir}), + contentType: 'application/json; charset=utf-8', dataType : 'json', success : web.setDirSuccess })