Skip to content

Commit

Permalink
fixup! feat(coap-in): Add simple ./well-known/core handler
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jul 4, 2024
1 parent 887f4e5 commit 4b583d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coap/coap-in.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ module.exports = function (RED) {
// TODO: Expand capabilities of the handler for /.well-known/core
res.code = "2.05";
res.setOption("Content-Format", "application/link-format");
const payload = this._resourceList.map((resource) => `<${resource}>`).join(",")
const payload = this._resourceList.map((resource) => `<${resource}>`).join(",");
return res.end(payload);
}
};

function _getPayload(inNode, rawBuffer, payload, contentFormat) {
if (rawBuffer) {
Expand Down

0 comments on commit 4b583d5

Please sign in to comment.