Skip to content

Commit 5404e0a

Browse files
authored
Fix: Prevent LoadProhibited error on HTTPS streams with port 80 #1121
1 parent b02ba82 commit 5404e0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Audio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
687687
rqh.append("Accept-Encoding: identity;q=1,*;q=0\r\n");
688688
rqh.append("Connection: keep-alive\r\n\r\n");
689689

690-
if(m_f_ssl) { _client = static_cast<WiFiClient*>(&clientsecure);}
690+
if(m_f_ssl) { _client = static_cast<WiFiClient*>(&clientsecure); if (port == 80) port = 443;}
691691
else { _client = static_cast<WiFiClient*>(&client); }
692692

693693
timestamp = millis();

0 commit comments

Comments
 (0)