diff --git a/accredit/cloud-code/cloud/app.js b/accredit/cloud-code/cloud/app.js index 126e58aa..f980d60f 100644 --- a/accredit/cloud-code/cloud/app.js +++ b/accredit/cloud-code/cloud/app.js @@ -231,7 +231,9 @@ app.post ('/getCredentials', function (req, res) { var credentialsObject = credentialsRequest.get ('credentials'); responseString = credentialsObject.get ('responseString'); responseContentType = credentialsObject.get ('responseContentType'); - + if (!responseContentType) { + responseContentType = "text/plain"; + } return destroyRequestAndResponse (credentialsRequest, credentialsResponse); }).then (function () { res.type (responseContentType);