@@ -277,7 +277,7 @@ export default class MqttBrokerServer implements ProtocolServer {
277277 * https://github.com/mqttjs/MQTT.js/pull/1103
278278 * For further discussion see https://github.com/eclipse-thingweb/node-wot/pull/253
279279 */
280- const contentType = packet ?. properties ?. contentType ?? ContentSerdes . DEFAULT ;
280+ const contentType = packet ?. properties ?. contentType ;
281281
282282 const options : InteractionOptions & { formIndex : number } = {
283283 formIndex : ProtocolHelpers . findRequestMatchingFormIndex (
@@ -288,7 +288,7 @@ export default class MqttBrokerServer implements ProtocolServer {
288288 ) ,
289289 } ;
290290
291- const formContentType = action . forms [ options . formIndex ] . contentType ?? ContentSerdes . DEFAULT ;
291+ const formContentType = action . forms [ options . formIndex ] . contentType ;
292292 const inputContent = new Content ( formContentType , Readable . from ( payload ) ) ;
293293
294294 thing
@@ -320,7 +320,7 @@ export default class MqttBrokerServer implements ProtocolServer {
320320 ) {
321321 const readOnly = property . readOnly ?? false ;
322322 if ( ! readOnly ) {
323- const contentType = packet ?. properties ?. contentType ?? ContentSerdes . DEFAULT ;
323+ const contentType = packet ?. properties ?. contentType ;
324324
325325 const options : InteractionOptions & { formIndex : number } = {
326326 formIndex : ProtocolHelpers . findRequestMatchingFormIndex (
@@ -331,7 +331,7 @@ export default class MqttBrokerServer implements ProtocolServer {
331331 ) ,
332332 } ;
333333
334- const formContentType = property . forms [ options . formIndex ] . contentType ?? ContentSerdes . DEFAULT ;
334+ const formContentType = property . forms [ options . formIndex ] . contentType ;
335335 const inputContent = new Content ( formContentType , Readable . from ( payload ) ) ;
336336
337337 try {
0 commit comments