koopjs / koop-provider-geojson

GeoJSON provider for Koop
Other
6 stars 5 forks source link

Update model.js #17

Open boris-kr opened 2 years ago

boris-kr commented 2 years ago

Just encountered a data source (Azure Blob storage) that doesn't support HTTP but supports HTTPS only. So it's solved by switching to HTTPS in this case, but probably a rollback to HTTP should be added in a case that HTTPS is not supported.

haoliangyu commented 2 years ago

I think a better approach is to use a full URL with a protocol (like HTTP, HTTPS). In the code, it can add the http:// if the URL doesn't start with a protocol.