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:
parent
a9b4e22fb0
commit
bb3a1d3609
@ -712,12 +712,10 @@ class PersonPages(BasePage):
|
|||||||
src_js += "ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
|
src_js += "ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
|
||||||
head += Html("script", type="text/javascript",
|
head += Html("script", type="text/javascript",
|
||||||
src=src_js, inline=True)
|
src=src_js, inline=True)
|
||||||
src_js = self.secure_mode
|
src_js = "https://openlayers.org/en/latest/build/ol.js"
|
||||||
src_js += "openlayers.org/en/latest/build/ol.js"
|
|
||||||
head += Html("script", type="text/javascript",
|
head += Html("script", type="text/javascript",
|
||||||
src=src_js, inline=True)
|
src=src_js, inline=True)
|
||||||
url = self.secure_mode
|
url = "https://openlayers.org/en/latest/css/ol.css"
|
||||||
url += "openlayers.org/en/latest/css/ol.css"
|
|
||||||
head += Html("link", href=url, type="text/javascript",
|
head += Html("link", href=url, type="text/javascript",
|
||||||
rel="stylesheet")
|
rel="stylesheet")
|
||||||
src_js = self.secure_mode
|
src_js = self.secure_mode
|
||||||
|
@ -390,12 +390,10 @@ class PlacePages(BasePage):
|
|||||||
"jquery.min.js")
|
"jquery.min.js")
|
||||||
head += Html("script", type="text/javascript",
|
head += Html("script", type="text/javascript",
|
||||||
src=src_js, inline=True)
|
src=src_js, inline=True)
|
||||||
src_js = self.secure_mode
|
src_js = "https://openlayers.org/en/latest/build/ol.js"
|
||||||
src_js += "openlayers.org/en/latest/build/ol.js"
|
|
||||||
head += Html("script", type="text/javascript",
|
head += Html("script", type="text/javascript",
|
||||||
src=src_js, inline=True)
|
src=src_js, inline=True)
|
||||||
url = self.secure_mode
|
url = "https://openlayers.org/en/latest/css/ol.css"
|
||||||
url += "openlayers.org/en/latest/css/ol.css"
|
|
||||||
head += Html("link", href=url, type="text/javascript",
|
head += Html("link", href=url, type="text/javascript",
|
||||||
rel="stylesheet")
|
rel="stylesheet")
|
||||||
src_js = self.secure_mode
|
src_js = self.secure_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user