Commit 71388d47 authored by Michael Smith's avatar Michael Smith

Some servers apparently send a Content-Type header of audio/x-mpeg.

Make icecast understand this.


svn path=/icecast/trunk/icecast/; revision=6649
parent 55ba59f3
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment