From 71388d47c6566541c1791dd8acbd994ab6703480 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 11 May 2004 02:24:18 +0000 Subject: [PATCH] Some servers apparently send a Content-Type header of audio/x-mpeg. Make icecast understand this. svn path=/icecast/trunk/icecast/; revision=6649 --- src/format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/format.c b/src/format.c index 821087a9..079706cb 100644 --- a/src/format.c +++ b/src/format.c @@ -55,6 +55,8 @@ format_type_t format_get_type(char *contenttype) return FORMAT_TYPE_VORBIS; /* Now blessed by IANA */ else if(strcmp(contenttype, "audio/mpeg") == 0) return FORMAT_TYPE_MP3; + else if(strcmp(contenttype, "audio/x-mpeg") == 0) + return FORMAT_TYPE_MP3; /* Relay-compatibility for some servers */ else return FORMAT_ERROR; }