From 478c34a3ea61928b21513248df5feee52b7bcec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20Desr=C3=A9?= Date: Tue, 3 May 2016 11:28:28 -0700 Subject: [PATCH] Use https url for the Hue nupnp server (#461) --- src/adapters/philips_hue/discovery.rs | 2 +- src/adapters/philips_hue/http.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adapters/philips_hue/discovery.rs b/src/adapters/philips_hue/discovery.rs index 37eb040e..efa5aa3c 100644 --- a/src/adapters/philips_hue/discovery.rs +++ b/src/adapters/philips_hue/discovery.rs @@ -54,7 +54,7 @@ impl Discovery { "philips_hue", "nupnp_enabled", "true"); if nupnp_enabled == "true" { let nupnp_url = controller.get_config().get_or_set_default( - "philips_hue", "nupnp_url", "http://www.meethue.com/api/nupnp"); + "philips_hue", "nupnp_url", "https://www.meethue.com/api/nupnp"); let nupnp_hubs = nupnp_query(&nupnp_url); for nupnp in nupnp_hubs { let _ = tx.lock().unwrap().send(HueAction::AddHub(nupnp.id.to_owned(), diff --git a/src/adapters/philips_hue/http.rs b/src/adapters/philips_hue/http.rs index c59db95a..7beda453 100644 --- a/src/adapters/philips_hue/http.rs +++ b/src/adapters/philips_hue/http.rs @@ -51,7 +51,7 @@ pub fn put(url: &str, data: &str) -> Result> { describe! philips_hue_http { before_each { - let good_url = "http://www.meethue.com/api/nupnp"; + let good_url = "https://www.meethue.com/api/nupnp"; } // TODO: This test fails on travis (not locally) for unknown reasons: