diff --git a/lib/src/service.dart b/lib/src/service.dart index 73a6bf7..06ac588 100644 --- a/lib/src/service.dart +++ b/lib/src/service.dart @@ -143,7 +143,7 @@ class Service { var request = await UpnpCommon.httpClient.postUrl(Uri.parse(controlUrl)); request.headers.set("SOAPACTION", '"${type}#${name}"'); request.headers.set("Content-Type", 'text/xml; charset="utf-8"'); - request.headers.set("User-Agent", 'CyberGarage-HTTP/1.0'); + request.headers.set("Content-Length", body.runes.length); request.write(body); var response = await request.close(); diff --git a/pubspec.yaml b/pubspec.yaml index 6cb9e36..2869ee9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,8 +3,8 @@ version: 2.0.1 description: Universal Plugin and Play Host/Client homepage: https://github.com/SpinlockLabs/upnp.dart dependencies: - xml: "^4.5.1" - crypto: "^2.1.5" + xml: "^5.3.1" + crypto: ^3.0.1 environment: sdk: ">=2.0.0 <3.0.0"