From 69960d75bd60e85d9d9817065f8f8aabe49706da Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 19 Feb 2014 09:40:22 -0800 Subject: [PATCH] Use https where supported Refs #2129 --- js/id/renderer/background_source.js | 4 ++-- js/id/services/taginfo.js | 2 +- js/id/services/wikipedia.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/id/renderer/background_source.js b/js/id/renderer/background_source.js index 8cd495c44..e0a0cb9c5 100644 --- a/js/id/renderer/background_source.js +++ b/js/id/renderer/background_source.js @@ -65,7 +65,7 @@ iD.BackgroundSource.Bing = function(data, dispatch) { var bing = iD.BackgroundSource(data), key = 'Arzdiw4nlOJzRwOz__qailc8NiR31Tt51dN2D7cm57NrnceZnCpgOkmJhNpGoppU', // Same as P2 and JOSM - url = 'http://dev.virtualearth.net/REST/v1/Imagery/Metadata/Aerial?include=ImageryProviders&key=' + + url = 'https://dev.virtualearth.net/REST/v1/Imagery/Metadata/Aerial?include=ImageryProviders&key=' + key + '&jsonp={callback}', providers = []; @@ -84,7 +84,7 @@ iD.BackgroundSource.Bing = function(data, dispatch) { dispatch.change(); }); - var template = 'http://ecn.t{t}.tiles.virtualearth.net/tiles/a{u}.jpeg?g=587&mkt=en-gb&n=z', + var template = 'https://ecn.t{t}.tiles.virtualearth.net/tiles/a{u}.jpeg?g=587&mkt=en-gb&n=z', subdomains = [0, 1, 2, 3]; bing.url = function(coord) { diff --git a/js/id/services/taginfo.js b/js/id/services/taginfo.js index 2d7077441..929724a58 100644 --- a/js/id/services/taginfo.js +++ b/js/id/services/taginfo.js @@ -1,6 +1,6 @@ iD.taginfo = function() { var taginfo = {}, - endpoint = 'http://taginfo.openstreetmap.org/api/4/', + endpoint = 'https://taginfo.openstreetmap.org/api/4/', tag_sorts = { point: 'count_nodes', vertex: 'count_nodes', diff --git a/js/id/services/wikipedia.js b/js/id/services/wikipedia.js index e5850b566..eb121f57a 100644 --- a/js/id/services/wikipedia.js +++ b/js/id/services/wikipedia.js @@ -1,6 +1,6 @@ iD.wikipedia = function() { var wiki = {}, - endpoint = 'http://en.wikipedia.org/w/api.php?'; + endpoint = 'https://en.wikipedia.org/w/api.php?'; wiki.search = function(lang, query, callback) { lang = lang || 'en';