Skip to content

Commit 710b480

Browse files
committed
Support for Https with custom port
1 parent acc52e0 commit 710b480

File tree

1 file changed

+2
-1
lines changed
  • src/AudioTools/CoreAudio/AudioHttp

1 file changed

+2
-1
lines changed

src/AudioTools/CoreAudio/AudioHttp/Url.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class Url {
3838
return urlRootStr.c_str();
3939
} // prefix w/o path -> https://host:port
4040
int port() { return portInt; }
41-
bool isSecure() { return portInt == 443; }
41+
// support https on custom ports
42+
bool isSecure() { return portInt == 443 || protocolStr.startsWith("https"); }
4243

4344
void setUrl(const char* url) {
4445
LOGD("setUrl %s", url);

0 commit comments

Comments
 (0)