Skip to content

Commit

Permalink
Change http links to e.g. planet.osm.org to https.
Browse files Browse the repository at this point in the history
Also expaned osm.org to openstreetmap.org (so that the cert will
match before doing any redirect).
  • Loading branch information
SomeoneElseOSM committed May 27, 2018
1 parent 47740e1 commit b1d3fc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions osmhm/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ def fetch_next(current_sequence='', time_type='hour', reset=False):
"""
if reset is True:
state_url = ("http://planet.openstreetmap.org/replication/"
state_url = ("https://planet.openstreetmap.org/replication/"
"%s/state.txt") % (time_type)

else:
next_sequence = int(current_sequence) + 1
sequence_string = str(next_sequence).zfill(9)
state_url = ("http://planet.openstreetmap.org/replication/"
state_url = ("https://planet.openstreetmap.org/replication/"
"%s/%s/%s/%s.state.txt") % (time_type,
sequence_string[0:3], sequence_string[3:6],
sequence_string[6:9])
Expand Down
10 changes: 5 additions & 5 deletions osmhm/send_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def send_notification(notify_list, notification_type, notifier=send_mail):
**User alert**
Time of event: %s
Username: http://www.osm.org/user/%s
Changeset: http://www.osm.org/changeset/%s
Username: https://www.openstreetmap.org/user/%s
Changeset: https://www.openstreetmap.org/changeset/%s
Additions: %s
Modifications: %s
Deletions: %s
Expand Down Expand Up @@ -65,10 +65,10 @@ def send_notification(notify_list, notification_type, notifier=send_mail):
**Object alert**
Time of event: %s
Object: http://www.osm.org/%s/%s
Changeset: http://www.osm.org/changeset/%s
Object: https://www.openstreetmap.org/%s/%s
Changeset: https://www.openstreetmap.org/changeset/%s
Action: %s
User performing: http://www.osm.org/user/%s
User performing: https://www.openstreetmap.org/user/%s
Reason object is watched: %s
Problem? Feedback? Reply to this message.
Expand Down

0 comments on commit b1d3fc1

Please sign in to comment.