Skip to content

Commit 8690072

Browse files
committed
Use HTTPS for Nominatim and Photon.
Fixes #1692.
1 parent d3515db commit 8690072

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/geocoder/lookups/nominatim.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ def map_link_url(coordinates)
1414

1515
private # ---------------------------------------------------------------
1616

17+
def supported_protocols
18+
[:https]
19+
end
20+
1721
def base_query_url(query)
1822
method = query.reverse_geocode? ? "reverse" : "search"
1923
"#{protocol}://#{configured_host}/#{method}?"

lib/geocoder/lookups/photon.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def name
1010
private # ---------------------------------------------------------------
1111

1212
def supported_protocols
13-
[:http, :https]
13+
[:https]
1414
end
1515

1616
def base_query_url(query)

0 commit comments

Comments
 (0)