Skip to content

Commit

Permalink
logging for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Forberg committed Feb 19, 2024
1 parent 517cf00 commit 4746dc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/app/common/get-linked-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ module.exports = async function getLinkedData(req, res, next, resourceUri, templ
accept = HttpStrings.CONTENT_TYPE_JSONLD;
}

let firstAccept = accept;

let indexOfComma = accept.indexOf(",");
let firstAccept = accept.substring(0, indexOfComma);

if(indexOfComma >= 0) {
firstAccept = accept.substring(0, indexOfComma);
}

console.log(firstAccept);
console.log(HttpStrings.CONTENT_TYPE_JSONLD);
Expand Down

0 comments on commit 4746dc7

Please sign in to comment.