@@ -279,7 +279,7 @@ export default class MqttBrokerServer implements ProtocolServer {
279
279
* https://github.com/mqttjs/MQTT.js/pull/1103
280
280
* For further discussion see https://github.com/eclipse-thingweb/node-wot/pull/253
281
281
*/
282
- const contentType = packet ?. properties ?. contentType ?? ContentSerdes . DEFAULT ;
282
+ const contentType = packet ?. properties ?. contentType ;
283
283
284
284
const options : InteractionOptions & { formIndex : number } = {
285
285
formIndex : ProtocolHelpers . findRequestMatchingFormIndex (
@@ -290,7 +290,7 @@ export default class MqttBrokerServer implements ProtocolServer {
290
290
) ,
291
291
} ;
292
292
293
- const formContentType = action . forms [ options . formIndex ] . contentType ?? ContentSerdes . DEFAULT ;
293
+ const formContentType = action . forms [ options . formIndex ] . contentType ;
294
294
const inputContent = new Content ( formContentType , Readable . from ( payload ) ) ;
295
295
296
296
thing
@@ -322,7 +322,7 @@ export default class MqttBrokerServer implements ProtocolServer {
322
322
) {
323
323
const readOnly = property . readOnly ?? false ;
324
324
if ( ! readOnly ) {
325
- const contentType = packet ?. properties ?. contentType ?? ContentSerdes . DEFAULT ;
325
+ const contentType = packet ?. properties ?. contentType ;
326
326
327
327
const options : InteractionOptions & { formIndex : number } = {
328
328
formIndex : ProtocolHelpers . findRequestMatchingFormIndex (
@@ -333,7 +333,7 @@ export default class MqttBrokerServer implements ProtocolServer {
333
333
) ,
334
334
} ;
335
335
336
- const formContentType = property . forms [ options . formIndex ] . contentType ?? ContentSerdes . DEFAULT ;
336
+ const formContentType = property . forms [ options . formIndex ] . contentType ;
337
337
const inputContent = new Content ( formContentType , Readable . from ( payload ) ) ;
338
338
339
339
try {
0 commit comments