mirror of https://github.com/mpv-player/mpv
Added mplayer version in the user-agent field.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6467 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
91cdc3a596
commit
cb69a70410
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue