| Index: sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java
|
| diff --git a/sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java b/sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java
|
| index 7d9021c04abf983bc23dfbda29cc4de7d860bed6..9288d5ace05ca1a3b63c0c4fa5067741e33c7bee 100644
|
| --- a/sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java
|
| +++ b/sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java
|
| @@ -26,6 +26,12 @@ public class SkyDemoActivity extends SkyActivity {
|
| if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| Uri skyUri = intent.getData();
|
| Uri httpsUri = skyUri.buildUpon().scheme("https").build();
|
| + // This is a hack to disable https for local testing.
|
| + // getHost may be null if we're passed a non-normalized url.
|
| + if (skyUri.getHost() != null
|
| + && skyUri.getHost().equals("localhost")) {
|
| + httpsUri = skyUri.buildUpon().scheme("http").build();
|
| + }
|
| url = httpsUri.toString();
|
| }
|
|
|
|
|