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

Default to use MusicBrainz and CAA over HTTPS #245

Merged
merged 6 commits into from Sep 10, 2019

Conversation

Freso
Copy link
Contributor

@Freso Freso commented Feb 21, 2019

Adds new "global" https boolean variables. This variable will be True by default, but if set_hostname() gets called it will default to False. This should allow both using musicbrainz.org/coverartarchive.org over HTTPS by default, but anyone that have a script setting a custom server (that may not support HTTPS) will continue to work as well.

I didn't see anywhere to denote that Python 2.7.6 would be the minimal supported version for this (as per my comment: #197 (comment)).

Should resolve #197

This adds a new "global" `https` boolean variable. This variable will be
True by default, but if `set_hostname()` gets called it will default to
False. This should allow both using musicbrainz.org over HTTPS by
default, but anyone that have a script setting a custom server (that may
not support HTTPS) will continue to work as well.

Fixes alastair#197

Signed-off-by: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
This adds a new "global" `https` boolean variable. This variable will be
True by default, but if `set_hostname()` gets called it will default to
False. This should allow both using coverartarchive.org over HTTPS by
default, but anyone that have a script setting a custom server (that may
not support HTTPS) will continue to work as well.

Related to alastair#197

Signed-off-by: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
@genodeftest
Copy link

This solution looks very clean, minimal and backwards-compatible.

Signed-off-by: Alastair Porter <alastair@porter.net.nz>
by default with musicbrainz.org we use https

Signed-off-by: Alastair Porter <alastair@porter.net.nz>
Signed-off-by: Alastair Porter <alastair@porter.net.nz>
@alastair
Copy link
Owner

I've updated this, a revision by someone else would be welcome!

Signed-off-by: Alastair Porter <alastair@porter.net.nz>
@alastair alastair merged commit eea24ef into alastair:master Sep 10, 2019
@Freso Freso deleted the issue-197-musicbrainz-https branch January 7, 2020 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use HTTPS for web service queries
3 participants