Skip to content

Commit

Permalink
fix well-known response content-type
Browse files Browse the repository at this point in the history
fix well-known response content-type
  • Loading branch information
damikael authored Mar 30, 2024
2 parents 6e6f047 + ceceed0 commit 5fae370
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/server/app/op.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ module.exports = function(app, checkAuthorisation, database) {
// get entity configuration (OIDC FEDERATION)
app.get("/.well-known/openid-federation", async function (req, res) {
let entity_statement = await makeEntityStatement();
res.set('Content-Type', 'application/entity-statement+jwt');
res.status(200).send(entity_statement);

//set method add charset into content-type
//res.set('Content-Type', 'application/entity-statement+jwt');
//res.status(200).send(entity_statement);

res.writeHead(200, { 'Content-Type': 'application/entity-statement+jwt' });
res.write(entity_statement);
res.end();
});

// get certs
Expand Down
2 changes: 1 addition & 1 deletion src/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spid-oidc-check-rp",
"version": "1.2.2",
"version": "1.2.3",
"description": "SPID OIDC Conformance Test Tool for RP",
"main": "spid-oidc-check-rp",
"author": "Michele D'Amico (damikael) - AgID",
Expand Down

0 comments on commit 5fae370

Please sign in to comment.