Skip to content

Commit 5fae370

Browse files
authored
fix well-known response content-type
fix well-known response content-type
2 parents 6e6f047 + ceceed0 commit 5fae370

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/server/app/op.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@ module.exports = function(app, checkAuthorisation, database) {
2323
// get entity configuration (OIDC FEDERATION)
2424
app.get("/.well-known/openid-federation", async function (req, res) {
2525
let entity_statement = await makeEntityStatement();
26-
res.set('Content-Type', 'application/entity-statement+jwt');
27-
res.status(200).send(entity_statement);
26+
27+
//set method add charset into content-type
28+
//res.set('Content-Type', 'application/entity-statement+jwt');
29+
//res.status(200).send(entity_statement);
30+
31+
res.writeHead(200, { 'Content-Type': 'application/entity-statement+jwt' });
32+
res.write(entity_statement);
33+
res.end();
2834
});
2935

3036
// get certs

src/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spid-oidc-check-rp",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "SPID OIDC Conformance Test Tool for RP",
55
"main": "spid-oidc-check-rp",
66
"author": "Michele D'Amico (damikael) - AgID",

0 commit comments

Comments
 (0)