From c38889955c2f53eb9e78b7c7930233935db10b90 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 4 Oct 2012 09:16:30 +0200 Subject: [PATCH] Use protocol-relative URL for Bing metadata. The [URI standard](http://tools.ietf.org/html/rfc3986#section-4.2) allows for URI without a scheme. Where http is used to load the app, using a schemeless URL for the Bing metadata loads a script using http - and the same goes for https. --- src/ol/source/bingmaps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/source/bingmaps.js b/src/ol/source/bingmaps.js index 0311a8aa4f..339abd5811 100644 --- a/src/ol/source/bingmaps.js +++ b/src/ol/source/bingmaps.js @@ -55,7 +55,7 @@ ol.source.BingMaps = function(bingMapsOptions) { this.ready_ = false; var uri = new goog.Uri( - 'http://dev.virtualearth.net/REST/v1/Imagery/Metadata/' + + '//dev.virtualearth.net/REST/v1/Imagery/Metadata/' + bingMapsOptions.style); var jsonp = new goog.net.Jsonp(uri, 'jsonp'); jsonp.send({