From c0bff1c3fff1961540c8fc1c8a397a284b291377 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 3 Oct 2012 21:33:34 -0600 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. --- lib/OpenLayers/Layer/Bing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Bing.js b/lib/OpenLayers/Layer/Bing.js index cf064e17c7..761c000aa0 100644 --- a/lib/OpenLayers/Layer/Bing.js +++ b/lib/OpenLayers/Layer/Bing.js @@ -145,7 +145,7 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, { jsonp: this._callbackId, include: "ImageryProviders" }, this.metadataParams); - var url = "http://dev.virtualearth.net/REST/v1/Imagery/Metadata/" + + var url = "//dev.virtualearth.net/REST/v1/Imagery/Metadata/" + this.type + "?" + OpenLayers.Util.getParameterString(params); var script = document.createElement("script"); script.type = "text/javascript";