@@ -263,7 +263,7 @@ export default class MqttBrokerServer implements ProtocolServer {
263263 * https://github.com/mqttjs/MQTT.js/pull/1103
264264 * For further discussion see https://github.com/eclipse-thingweb/node-wot/pull/253
265265 */
266- const contentType = packet ?. properties ?. contentType ?? ContentSerdes . DEFAULT ;
266+ const contentType = packet ?. properties ?. contentType ;
267267
268268 const options : InteractionOptions & { formIndex : number } = {
269269 formIndex : ProtocolHelpers . findRequestMatchingFormIndex (
@@ -274,7 +274,7 @@ export default class MqttBrokerServer implements ProtocolServer {
274274 ) ,
275275 } ;
276276
277- const formContentType = action . forms [ options . formIndex ] . contentType ?? ContentSerdes . DEFAULT ;
277+ const formContentType = action . forms [ options . formIndex ] . contentType ;
278278 const inputContent = new Content ( formContentType , Readable . from ( payload ) ) ;
279279
280280 thing
@@ -306,7 +306,7 @@ export default class MqttBrokerServer implements ProtocolServer {
306306 ) {
307307 const readOnly = property . readOnly ?? false ;
308308 if ( ! readOnly ) {
309- const contentType = packet ?. properties ?. contentType ?? ContentSerdes . DEFAULT ;
309+ const contentType = packet ?. properties ?. contentType ;
310310
311311 const options : InteractionOptions & { formIndex : number } = {
312312 formIndex : ProtocolHelpers . findRequestMatchingFormIndex (
@@ -317,7 +317,7 @@ export default class MqttBrokerServer implements ProtocolServer {
317317 ) ,
318318 } ;
319319
320- const formContentType = property . forms [ options . formIndex ] . contentType ?? ContentSerdes . DEFAULT ;
320+ const formContentType = property . forms [ options . formIndex ] . contentType ;
321321 const inputContent = new Content ( formContentType , Readable . from ( payload ) ) ;
322322
323323 try {
0 commit comments