1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

fix userAgent

This commit is contained in:
kev 2015-02-03 14:49:35 +08:00
parent d84089e041
commit 1cd9fa40f7

View File

@ -22,7 +22,7 @@ var setDefaults = function(req) {
req.targetContent = checkString('targetContent', req.targetContent, '');
req.targetUrl = checkString('targetUrl', req.targetUrl); // required
req.timeout = checkNumber('timeout', req.timeout, 1000, 300000, 60000);
req.userAgent = checkString('userAgent', req.userAgent, 'Mozilla/5.0 PhantomJS/1.9.8');
req.userAgent = checkString('userAgent', req.userAgent, 'Mozilla/5.0 WebKit');
req.viewportSize = checkObject('viewportSize', req.viewportSize, {width: 800, height: 600, zoomFactor: 1});
req.renderQuality = checkNumber('renderQuality', req.renderQuality, 0, 100, 50);
return req;