Skip to content

Commit

Permalink
fix(thing_disocovery): use named Form parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jan 22, 2022
1 parent fef084e commit 47ef013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/core/thing_discovery.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ThingDiscovery implements scripting_api.ThingDiscovery {
}
final parsedUri = Uri.parse(uri);
final client = _servient.clientFor(parsedUri.scheme);
final fetchForm = Form(uri, "application/td+json");
final fetchForm = Form(uri, contentType: "application/td+json");

final content = await client.readResource(fetchForm);
await client.stop();
Expand Down

0 comments on commit 47ef013

Please sign in to comment.