Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Automatically prepend https for Overseerr, Sonarr and Radarr when using port 443 #853

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

Thijn
Copy link
Contributor

@Thijn Thijn commented Feb 8, 2024

This took me way too long to figure out. Hence this PR to fix this for future me (And everyone else).

Because the fields are labeled as Hostname / IP it wasn't clear you could enter https://hostname in that field (Which technically is a URL, not a hostname).
So I put my hostname and port 443 in the settings, but every time I clicked test it failed.

It wasn't untill I refreshed the page it became clear the hostname was prepended with http:// by default.

This PR fixes this by prepending the hostname with https when using port 443, or http if not.

The includes checks could be combined into one (https always contains http, so no need to check twice), and I've added a condition for port 443.

(First PR here, please let me know if anything is missing)

@jorenn92
Copy link
Owner

Hey, thanks for submitting this PR!

I'll merge it once I've validated that it still works as expected with the latest changes. There were some other bug fixes & refactors with the Plex settings.

@jorenn92
Copy link
Owner

jorenn92 commented Mar 25, 2024

@Thijn, I rebased your branch so it's up to date again. I wasn't able to merge it in it's current state. Once the checks are done, it'll auto merge.

@jorenn92 jorenn92 enabled auto-merge March 25, 2024 13:45
@jorenn92 jorenn92 merged commit 995d01e into jorenn92:main Mar 25, 2024
3 checks passed
@jorenn92
Copy link
Owner

🎉 This PR is included in version 2.0.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants