Skip to content

Commit

Permalink
fixup! feat(coap-request): adapt to http-request
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jul 4, 2024
1 parent 3d0ce4a commit 5bd74e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coap/coap-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ module.exports = function (RED) {
var payload;

if (reqOpts.method !== "GET") {
payload = _constructPayload(msg, reqOpts.headers["Content-Format"]);
reqOpts.headers["content-Format"] ??= config["content-format"]
payload = _constructPayload(msg, reqOpts.headers["content-Format"]);
} else if (paytoqs === "query") {
try {
_appendQueryParams(reqOpts, msg.payload);
Expand Down

0 comments on commit 5bd74e4

Please sign in to comment.