mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-27 01:54:06 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user