@@ -279,7 +279,7 @@ export default class MqttBrokerServer implements ProtocolServer {
279279 * https://github.com/mqttjs/MQTT.js/pull/1103
280280 * For further discussion see https://github.com/eclipse-thingweb/node-wot/pull/253
281281 */
282- const contentType = packet ?. properties ?. contentType ?? ContentSerdes . DEFAULT ;
282+ const contentType = packet ?. properties ?. contentType ;
283283
284284 const options : InteractionOptions & { formIndex : number } = {
285285 formIndex : ProtocolHelpers . findRequestMatchingFormIndex (
@@ -290,7 +290,7 @@ export default class MqttBrokerServer implements ProtocolServer {
290290 ) ,
291291 } ;
292292
293- const formContentType = action . forms [ options . formIndex ] . contentType ?? ContentSerdes . DEFAULT ;
293+ const formContentType = action . forms [ options . formIndex ] . contentType ;
294294 const inputContent = new Content ( formContentType , Readable . from ( payload ) ) ;
295295
296296 thing
@@ -322,7 +322,7 @@ export default class MqttBrokerServer implements ProtocolServer {
322322 ) {
323323 const readOnly = property . readOnly ?? false ;
324324 if ( ! readOnly ) {
325- const contentType = packet ?. properties ?. contentType ?? ContentSerdes . DEFAULT ;
325+ const contentType = packet ?. properties ?. contentType ;
326326
327327 const options : InteractionOptions & { formIndex : number } = {
328328 formIndex : ProtocolHelpers . findRequestMatchingFormIndex (
@@ -333,7 +333,7 @@ export default class MqttBrokerServer implements ProtocolServer {
333333 ) ,
334334 } ;
335335
336- const formContentType = property . forms [ options . formIndex ] . contentType ?? ContentSerdes . DEFAULT ;
336+ const formContentType = property . forms [ options . formIndex ] . contentType ;
337337 const inputContent = new Content ( formContentType , Readable . from ( payload ) ) ;
338338
339339 try {
0 commit comments