muesli / telephant

A lightweight but modern Mastodon client for the desktop
MIT License
190 stars 14 forks source link

Add "https://" if instance URL misses it #8

Closed gsora closed 5 years ago

gsora commented 5 years ago

This patch adds a small function which tests for presence of either "http://" or "https://" in the instance URL inserted by the user.

If none of them is found, it adds "https://" by default.

I noticed that somehow go-mastodon does not handle http->https redirect, so consider this more of an hack just to not break UX.