CurlFile: use HttpHeader:AddParam
authorKarlson2k <k2k@narod.ru>
Tue, 13 Aug 2013 21:07:15 +0000 (01:07 +0400)
committerKarlson2k <k2k@narod.ru>
Sun, 27 Oct 2013 00:27:55 +0000 (04:27 +0400)
xbmc/filesystem/CurlFile.cpp

index be3c915..05b6d0c 100644 (file)
@@ -652,7 +652,7 @@ void CCurlFile::SetCorrectHeaders(CReadState* state)
     if( !h.GetValue("icy-notice1").empty()
     || !h.GetValue("icy-name").empty()
     || !h.GetValue("icy-br").empty() )
-    h.Parse("Content-Type: audio/mpeg\r\n");
+      h.AddParam("Content-Type", "audio/mpeg");
   }
 
   /* hack for google video */
@@ -661,7 +661,7 @@ void CCurlFile::SetCorrectHeaders(CReadState* state)
   {
     CStdString strValue = h.GetValue("Content-Disposition");
     if (strValue.Find("filename=") > -1 && strValue.Find(".flv") > -1)
-      h.Parse("Content-Type: video/flv\r\n");
+      h.AddParam("Content-Type", "video/flv");
   }
 }