diff --git a/utils.js b/utils.js index 161ed47..68ada4e 100755 --- a/utils.js +++ b/utils.js @@ -1596,7 +1596,7 @@ exports.parseUA = function(headers, structured) { return structured ? { os: platform, browser: browser, device: mobile ? 'mobile' : 'desktop' } : ((platform ? (platform + ' ') : '') + browser + (mobile ? ' Mobile' : '')); } else { ua = (headers['user-agent'] || ''); - return ua ? ua.parseUA() : ua; + return ua ? ua.parseUA(structured) : ua; } };