Skip to content

Commit 95f76bd

Browse files
Moses Mooretomaszg7
authored andcommitted
Fix: Accept https as url in playlist.
Taken from jonsafari/mocp#32
1 parent 7cee781 commit 95f76bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

files.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ void files_cleanup ()
8686
inline int is_url (const char *str)
8787
{
8888
return !strncasecmp (str, "http://", sizeof ("http://") - 1)
89+
|| !strncasecmp (str, "https://", sizeof ("https://") - 1)
8990
|| !strncasecmp (str, "ftp://", sizeof ("ftp://") - 1);
9091
}
9192

0 commit comments

Comments
 (0)