Skip to content

Commit

Permalink
Use https url for the Hue nupnp server (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricedesre committed May 3, 2016
1 parent fa8181b commit 478c34a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adapters/philips_hue/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl<C: Controller> Discovery<C> {
"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(),
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/philips_hue/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn put(url: &str, data: &str) -> Result<String, Box<Error>> {
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:
Expand Down

0 comments on commit 478c34a

Please sign in to comment.