diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-02 17:15:14 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-02 17:15:14 +0000 |
commit | 863a334a9f3f009917b17759f27e655c295869cb (patch) | |
tree | aa99ee3b9e5a77fbec044879c76b08d6001462c5 /stream | |
parent | 6818a5e843584e9d0903c8465b3fcc6df9c4c21b (diff) |
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
Diffstat (limited to 'stream')
-rw-r--r-- | stream/http.c | 2 | ||||
-rw-r--r-- | stream/network.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/stream/http.c b/stream/http.c index 21488907f7..fa8b4e9d35 100644 --- a/stream/http.c +++ b/stream/http.c @@ -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 }; diff --git a/stream/network.c b/stream/network.c index 6e000c07f2..ccea73ed63 100644 --- a/stream/network.c +++ b/stream/network.c @@ -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) { |