Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
accredit: add failback if contenttype isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
lewurm committed Oct 7, 2015
1 parent 41b010e commit 4c0e013
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion accredit/cloud-code/cloud/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4c0e013

Please sign in to comment.