From d1fb9b6f9f287de59c98fb917f84bae6e9feb2c7 Mon Sep 17 00:00:00 2001 From: libccy Date: Tue, 12 Jun 2018 00:35:32 +0800 Subject: [PATCH] ua --- game/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index 2b891d0df..fb9cf5556 100644 --- a/game/game.js +++ b/game/game.js @@ -6937,7 +6937,7 @@ if(!lib.node.http) lib.node.http=require('http'); if(!lib.node.https) lib.node.https=require('https'); var opts = require('url').parse(encodeURI(url)); - opts.headers={'User-Agent': navigator.userAgent}; + opts.headers={'User-Agent': 'AppleWebkit'}; var request = (url.indexOf('https')==0?lib.node.https:lib.node.http).get(opts, function(response) { var stream=response.pipe(file); stream.on('finish',function(){