diff --git a/modules/distribution/src/repository/jaggeryapps/iotserver/modules/device.js b/modules/distribution/src/repository/jaggeryapps/iotserver/modules/device.js index f29aaeb9..bf69621c 100644 --- a/modules/distribution/src/repository/jaggeryapps/iotserver/modules/device.js +++ b/modules/distribution/src/repository/jaggeryapps/iotserver/modules/device.js @@ -177,7 +177,7 @@ deviceModule = function () { var data = {}; //XMLHTTPRequest's POST - return post(updateDeviceEndpoint+ "?name="+device.name, data, "json"); + return post(updateDeviceEndpoint+ "?name="+device.name, data, "text"); }; /* diff --git a/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/dashboard.hbs b/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/dashboard.hbs index c2f9870e..07e7116b 100644 --- a/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/dashboard.hbs +++ b/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/dashboard.hbs @@ -11,7 +11,7 @@