# HG changeset patch # User bertrand # Date 1024563040 0 # Node ID ebffa928a5d45ebdef52e883c067b9a7cd0e6a47 # Parent b59ad8bbbd72a14ec56aa58cd121a7ee89a62499 Added mplayer version in the user-agent field. diff -r b59ad8bbbd72 -r ebffa928a5d4 libmpdemux/network.c --- 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;