Skip to content

Commit

Permalink
Fix hhp-in to handle application/cbor as binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed Jul 23, 2020
1 parent 442b9d2 commit 8892247
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ module.exports = function(RED) {
isText = true;
} else if (parsedType.type !== "application") {
isText = false;
} else if (parsedType.subtype !== "octet-stream") {
} else if ((parsedType.subtype !== "octet-stream") && (parsedType.subtype !== "cbor")) {
checkUTF = true;
} else {
// applicatino/octet-stream
// application/octet-stream or application/cbor
isText = false;
}

Expand Down

0 comments on commit 8892247

Please sign in to comment.