commit | a884c87dfc4dc42c6b04e1a833421ce15a97f083 | [log] [tgz] |
---|---|---|
author | Brett Morgan <brett.morgan@gmail.com> | Sun May 10 10:37:06 2020 +1000 |
committer | GitHub <noreply@github.com> | Sun May 10 10:37:06 2020 +1000 |
tree | e2f38b86dd707a2e928220dd09ffec47e3c5de40 | |
parent | a34818434d69394db8910320dcdd9af387f50151 [diff] |
Enable https in warmup (#536)
diff --git a/tool/warmup.dart b/tool/warmup.dart index 1239441..3636602 100644 --- a/tool/warmup.dart +++ b/tool/warmup.dart
@@ -56,9 +56,10 @@ exit(1); } - // Use an insecure connection for test driving to avoid cert problems - // with the prefixed app version. - uri = 'http://$appHost$BASE_PATH'; + if (!appHost.startsWith('http://') && !appHost.startsWith('https://')) { + appHost = 'http://$appHost'; + } + uri = '$appHost$BASE_PATH'; print('Target URI\n$uri');