This commit is contained in:
libccy 2018-06-12 00:35:32 +08:00
parent 431bdf4630
commit d1fb9b6f9f
1 changed files with 1 additions and 1 deletions

View File

@ -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(){