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 9feb74c commit d7b2874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coap/coap-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ module.exports = function (RED) {
var payload;

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

0 comments on commit d7b2874

Please sign in to comment.