summaryrefslogtreecommitdiffstats
path: root/stream/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/network.c')
-rw-r--r--stream/network.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/stream/network.c b/stream/network.c
index cf01bf7144..48d50d5de5 100644
--- a/stream/network.c
+++ b/stream/network.c
@@ -42,15 +42,13 @@
#include "stream.h"
#include "libmpdemux/demuxer.h"
#include "m_config.h"
-
+#include "mpcommon.h"
#include "network.h"
#include "tcp.h"
#include "http.h"
#include "cookies.h"
#include "url.h"
-#include "version.h"
-
extern int stream_cache_size;
/* Variables for the command line option -user, -passwd, -bandwidth,
@@ -219,12 +217,10 @@ http_send_request( URL_t *url, off_t pos ) {
snprintf(str, 256, "Host: %s", server_url->hostname );
http_set_field( http_hdr, str);
if (network_useragent)
- {
snprintf(str, 256, "User-Agent: %s", network_useragent);
- http_set_field(http_hdr, str);
- }
else
- http_set_field( http_hdr, "User-Agent: MPlayer/"VERSION);
+ snprintf(str, 256, "User-Agent: %s", mplayer_version);
+ http_set_field(http_hdr, str);
if (network_referrer) {
char *referrer = NULL;