OSM forward all http resquest to https. (#829)

After asking the OSM support, I was told OSM forward all http request to
https when we use .org url.
So it should work in all cases.

This has an energy cost, so it would be good for the planet to change
http to https.
This commit is contained in:
Serge Noiraud 2019-07-05 04:55:18 +02:00 committed by Sam Manzi
parent a9b4e22fb0
commit bb3a1d3609
2 changed files with 4 additions and 8 deletions

View File

@ -712,12 +712,10 @@ class PersonPages(BasePage):
src_js += "ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
head += Html("script", type="text/javascript",
src=src_js, inline=True)
src_js = self.secure_mode
src_js += "openlayers.org/en/latest/build/ol.js"
src_js = "https://openlayers.org/en/latest/build/ol.js"
head += Html("script", type="text/javascript",
src=src_js, inline=True)
url = self.secure_mode
url += "openlayers.org/en/latest/css/ol.css"
url = "https://openlayers.org/en/latest/css/ol.css"
head += Html("link", href=url, type="text/javascript",
rel="stylesheet")
src_js = self.secure_mode

View File

@ -390,12 +390,10 @@ class PlacePages(BasePage):
"jquery.min.js")
head += Html("script", type="text/javascript",
src=src_js, inline=True)
src_js = self.secure_mode
src_js += "openlayers.org/en/latest/build/ol.js"
src_js = "https://openlayers.org/en/latest/build/ol.js"
head += Html("script", type="text/javascript",
src=src_js, inline=True)
url = self.secure_mode
url += "openlayers.org/en/latest/css/ol.css"
url = "https://openlayers.org/en/latest/css/ol.css"
head += Html("link", href=url, type="text/javascript",
rel="stylesheet")
src_js = self.secure_mode