From 96053dfbebec9c6d309a1f7c2f910d9e3cfbc975 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <rem@videolan.org>
Date: Sun, 14 May 2006 13:06:09 +0000
Subject: [PATCH] =?UTF-8?q?Recognize=20XSPF=20MIME=20type=20when=20there?=
 =?UTF-8?q?=20is=20a=20charset=20parameter.=20Thanks=20to=20=E2=80=9CDS?=
 =?UTF-8?q?=E2=80=9D=20for=20pointing=20this=20out.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 modules/access/http.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index 71bdcb011a48..2905d59c0321 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -407,7 +407,8 @@ connect:
         p_access->psz_demux = strdup( "nsv" );
     }
     else if( p_sys->psz_mime &&
-             !strcasecmp( p_sys->psz_mime, "application/xspf+xml" ) )
+             !strncasecmp( p_sys->psz_mime, "application/xspf+xml", 20 ) &&
+             ( memchr( " ;\t", p_sys->psz_mime[20], 4 ) != NULL ) )
         p_access->psz_demux = strdup( "xspf-open" );
 
     if( p_sys->b_reconnect ) msg_Dbg( p_access, "auto re-connect enabled" );
-- 
GitLab