From 61a88f1692304d12c8bad0cb7335d20c65ed8b94 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Mon, 25 Oct 2004 20:52:28 +0000 Subject: [PATCH] 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 --- src/inputStream_http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inputStream_http.c b/src/inputStream_http.c index 9a32b269d..2e0755d96 100644 --- a/src/inputStream_http.c +++ b/src/inputStream_http.c @@ -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;