changeset 27847:28deb37052cd

Add a noicyx:// protocol to allow easier testing for misconfigured servers.
author reimar
date Sun, 02 Nov 2008 17:15:14 +0000
parents 87da3db93a44
children c7b5d862b6d8
files stream/http.c stream/network.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/http.c	Sun Nov 02 16:46:02 2008 +0000
+++ b/stream/http.c	Sun Nov 02 17:15:14 2008 +0000
@@ -973,7 +973,7 @@
   "Bertrand, Albeau, Reimar Doeffinger, Arpi?",
   "plain http",
   open_s1,
-  {"http", "http_proxy", "unsv", "icyx", NULL},
+  {"http", "http_proxy", "unsv", "icyx", "noicyx", NULL},
   NULL,
   0 // Urls are an option string
 };
--- a/stream/network.c	Sun Nov 02 16:46:02 2008 +0000
+++ b/stream/network.c	Sun Nov 02 17:15:14 2008 +0000
@@ -205,6 +205,7 @@
 	else
 	    http_set_field( http_hdr, "User-Agent: MPlayer/"VERSION);
 
+	if( strcasecmp(url->protocol, "noicyx") )
 	http_set_field(http_hdr, "Icy-MetaData: 1");
 
 	if(pos>0) {