remove the use of base64 for webaction response (#176)
* remove the use of base64 for webaction response
* moar changes
diff --git a/.gitignore b/.gitignore
index 4f86fab..3af456f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,11 @@
action/*.zip
.idea
*.iml
+
+# Eclipse
+bin/
+**/.project
+.settings/
+.classpath
+.cache-main
+.cache-tests
diff --git a/actions/changesWebAction.js b/actions/changesWebAction.js
index b72e35d..1bade20 100644
--- a/actions/changesWebAction.js
+++ b/actions/changesWebAction.js
@@ -91,7 +91,7 @@
resolve({
statusCode: 200,
headers: {'Content-Type': 'application/json'},
- body: new Buffer(JSON.stringify({'status': 'success'})).toString('base64')
+ body: {'status': 'success'}
});
})
.catch(err => {
@@ -131,7 +131,7 @@
resolve({
statusCode: 200,
headers: {'Content-Type': 'application/json'},
- body: new Buffer(JSON.stringify(body)).toString('base64')
+ body: body
});
})
.catch(err => {
@@ -186,7 +186,7 @@
resolve({
statusCode: 200,
headers: {'Content-Type': 'application/json'},
- body: new Buffer(JSON.stringify({'status': 'success'})).toString('base64')
+ body: {'status': 'success'}
});
})
.catch(err => {
@@ -208,7 +208,7 @@
resolve({
statusCode: 200,
headers: {'Content-Type': 'application/json'},
- body: new Buffer(JSON.stringify({'status': 'success'})).toString('base64')
+ body: {'status': 'success'}
});
})
.catch(err => {
@@ -468,7 +468,7 @@
return {
statusCode: statusCode,
headers: { 'Content-Type': 'application/json' },
- body: new Buffer(JSON.stringify(params)).toString('base64')
+ body: params
};
}