From ab613fcd34bffd67e9ea02db45fbc9babf27aa18 Mon Sep 17 00:00:00 2001 From: James O'Cull Date: Mon, 28 Dec 2015 14:03:41 -0500 Subject: [PATCH] Responses to token granting should have JSON content type --- lib/common/finishGrantingToken.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/common/finishGrantingToken.js b/lib/common/finishGrantingToken.js index fac452c..1ed7612 100644 --- a/lib/common/finishGrantingToken.js +++ b/lib/common/finishGrantingToken.js @@ -39,7 +39,9 @@ module.exports = function finishGrantingToken(allCredentials, token, options, re responseBody.scope = scopesGranted.join(" "); } - res.send(responseBody); + res.send(200, responseBody, { + 'content-type': 'application/json' + }); next(); }); };