Fix problem with cache URL examples.

This commit is contained in:
Kenneth Endfinger
2019-10-12 05:22:22 -05:00
parent a6a7b443f1
commit 5fea4ca203
6 changed files with 474 additions and 13 deletions
+4 -7
View File
@@ -4,16 +4,13 @@ import 'dart:io';
Future<void> main(List<String> args) async {
var client = new HttpClient();
var request = await client.postUrl(Uri.parse("https://lcdn-locator.apple.com/lcdn/locate"));
var request = await client
.postUrl(Uri.parse("https://lcdn-locator.apple.com/lcdn/locate"));
request.writeln(json.encode({
"ranked-results": true,
"locator-tag": "#f5cfd4d0",
"local-addresses": [
args[0]
],
"public-address-ranges": [
[]
],
"local-addresses": [args[0]],
"public-address-ranges": [[]],
"locator-software": [
{
"build": "19A578c",