Don't check port when contacting musicbrainz.org.

If we're always using HTTPS when contacting musicbrainz.org, there's no
reason to check for the port at all, so let's not.
This commit is contained in:
Frederik “Freso” S. Olesen
2017-01-26 18:26:38 +01:00
parent 5924ffd8c9
commit e85febfd23

View File

@@ -395,9 +395,9 @@ def build_qurl(host, port=80, path=None, queryargs=None):
url.setHost(host)
url.setPort(port)
if (# We're contacting a MusicBrainz server
(host in MUSICBRAINZ_SERVERS and port == 80) or
host in MUSICBRAINZ_SERVERS or
# Or we're contacting some other server via HTTPS.
port == 443):
port == 443):
url.setScheme("https")
url.setPort(443)
else: