Skip to content

Commit

Permalink
Avoid protocol relative URLs and prefer HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed Apr 15, 2016
1 parent a139976 commit 960465a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/geocoders/bing.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
},

geocode : function (query, cb, context) {
Util.jsonp('//dev.virtualearth.net/REST/v1/Locations', {
Util.jsonp('https://dev.virtualearth.net/REST/v1/Locations', {
query: query,
key : this.key
}, function(data) {
Expand Down
2 changes: 1 addition & 1 deletion src/geocoders/mapquest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var L = require('leaflet'),
module.exports = {
class: L.Class.extend({
options: {
serviceUrl: '//www.mapquestapi.com/geocoding/v1'
serviceUrl: 'https://www.mapquestapi.com/geocoding/v1'
},

initialize: function(key, options) {
Expand Down
2 changes: 1 addition & 1 deletion src/geocoders/mapzen.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var L = require('leaflet'),
module.exports = {
class: L.Class.extend({
options: {
serviceUrl: '//search.mapzen.com/v1',
serviceUrl: 'https://search.mapzen.com/v1',
geocodingQueryParams: {},
reverseQueryParams: {}
},
Expand Down
4 changes: 2 additions & 2 deletions src/geocoders/photon.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ var L = require('leaflet'),
module.exports = {
class: L.Class.extend({
options: {
serviceUrl: '//photon.komoot.de/api/',
reverseUrl: '//photon.komoot.de/reverse/',
serviceUrl: 'https://photon.komoot.de/api/',
reverseUrl: 'https://photon.komoot.de/reverse/',
nameProperties: [
'name',
'street',
Expand Down

0 comments on commit 960465a

Please sign in to comment.