This commit is contained in:
Ben Hardill 2021-04-16 13:26:11 +01:00
parent 0167c25e08
commit 235690064f
No known key found for this signature in database
GPG Key ID: 74DD076979ABB1E7
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ module.exports = function(RED) {
isText = true;
} else if (parsedType.type !== "application") {
isText = false;
} else if ((parsedType.subtype !== "octet-stream") && (parsedType.subtype !== "cbor")) {
} else if ((parsedType.subtype !== "octet-stream")
&& (parsedType.subtype !== "cbor")
&& (parsedType.subtype !== "x-protobuf")) {
checkUTF = true;
} else {
// application/octet-stream or application/cbor