Mercurial > mplayer.hg
changeset 6466:ebffa928a5d4
Added mplayer version in the user-agent field.
author | bertrand |
---|---|
date | Thu, 20 Jun 2002 08:50:40 +0000 |
parents | b59ad8bbbd72 |
children | 4abc6ee477ec |
files | libmpdemux/network.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/network.c Thu Jun 20 07:58:52 2002 +0000 +++ b/libmpdemux/network.c Thu Jun 20 08:50:40 2002 +0000 @@ -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 @@ } 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;