stream name maybe icy-name or ice-name in the http headers

git-svn-id: https://svn.musicpd.org/mpd/trunk@2339 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-10-25 20:52:28 +00:00
parent fececcea3c
commit 61a88f1692
1 changed files with 3 additions and 1 deletions

View File

@ -570,7 +570,9 @@ static int getHTTPHello(InputStream * inStream) {
else if(0 == strncmp(cur, "\r\nicy-metaint:", 14)) {
data->icyMetaint = atoi(cur+14);
}
else if(0 == strncmp(cur, "\r\nicy-name:", 11)) {
else if(0 == strncmp(cur, "\r\nicy-name:", 11) ||
0 == strncmp(cur, "\r\nice-name:", 11))
{
int incr = 11;
char * temp = strstr(cur+incr,"\r\n");
if(!temp) break;