summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-20 08:50:40 +0000
committerbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-20 08:50:40 +0000
commitcb69a70410b0f96378a701763b94c05bd8222fdd (patch)
tree4f995c3b1b0a44527d25115e0872eeb281441c7c /libmpdemux
parent91cdc3a59607c594866863fcd2445b2c6cd9b4d6 (diff)
downloadmpv-cb69a70410b0f96378a701763b94c05bd8222fdd.tar.bz2
mpv-cb69a70410b0f96378a701763b94c05bd8222fdd.tar.xz
Added mplayer version in the user-agent field.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6467 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/network.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index 226a71b5e3..94ce488f76 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -27,6 +27,8 @@
#include "asf.h"
#include "rtp.h"
+#include "../version.h"
+
extern int verbose;
extern m_config_t *mconfig;
@@ -269,7 +271,7 @@ http_send_request( URL_t *url ) {
}
snprintf(str, 80, "Host: %s", server_url->hostname );
http_set_field( http_hdr, str);
- http_set_field( http_hdr, "User-Agent: MPlayer");
+ http_set_field( http_hdr, "User-Agent: MPlayer/"VERSION);
http_set_field( http_hdr, "Connection: closed");
if( http_build_request( http_hdr )==NULL ) {
return -1;