Add a noicyx:// protocol to allow easier testing for misconfigured servers.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27881 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-11-02 17:15:14 +00:00
parent 6818a5e843
commit 863a334a9f
2 changed files with 2 additions and 1 deletions

View File

@ -973,7 +973,7 @@ const stream_info_t stream_info_http1 = {
"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
};

View File

@ -205,6 +205,7 @@ http_send_request( URL_t *url, off_t pos ) {
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) {