We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8e3d6e commit 5ea6d50Copy full SHA for 5ea6d50
1 file changed
packages/core/src/consumed-thing.ts
@@ -566,7 +566,7 @@ export default class ConsumedThing extends TD.Thing implements IConsumedThing {
566
outputDataSchema: WoT.DataSchema | undefined
567
): InteractionOutput {
568
// infer media type from form if not in response metadata
569
- if (!content.type) content.type = form.contentType ?? "application/json";
+ content.type ??= form.contentType ?? "application/json";
570
571
// check if returned media type is the same as expected media type (from TD)
572
if (form.response != null) {
0 commit comments