summaryrefslogtreecommitdiffstats
path: root/libmpdemux/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/network.c')
-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;