[OSM-talk] HTTPS all the Things (Automated Edit)

Bryce Jasmer bryce at jasmer.com
Tue Feb 26 12:34:26 UTC 2019


Correct. No change will be made on anything other than the most
straightforward of redirects. So even http://example.com ->
https://example.com/home.aspx will be ignored.

On Tue, Feb 26, 2019 at 4:23 AM Frederik Ramm <frederik at remote.org> wrote:

> Hi,
>
> On 26.02.19 12:47, Mateusz Konieczny wrote:
> > So when http://domainname.com redirects to
> > https://some-other-domainname.com <http://domainname.com>
> > no edit will be made, right?
>
> The logic for this appears to be here
>
>
> https://gitlab.com/b-jazz/https_all_the_things/blob/master/src/httpsosm.py#L132-137
>
> which reads:
>
> if any((website.replace('http://', 'https://', 1) == new_location,
>                        website.replace('http://', 'https://', 1) + '/'
> == new_location,                             website.replace('http://',
> 'https://www.', 1) == new_location,
> website.replace('http://', 'https://www.', 1) + '/' == new_location,
>                          website.replace('http://www.', 'https://', 1)
> == new_location,
> website.replace('http://www.', 'https://', 1) + '/' == new_location)):
>                        element['tags']['website'] = new_location
>
> Bye
> Frederik
>
> --
> Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20190226/be5fa78a/attachment.html>


More information about the talk mailing list