mape/connect-assetmanager — Issue #21: user agent can be null, causing an error
Author: dylang
Created: 2011-10-18 19:36:15+00:00
State: open

This can be null (from `assettmanager.js`):

var userAgent = req.headers['user-agent'];

which results in an error a few lines down:

if (!found && userAgent.match(new RegExp(match, 'i'))) {
^
TypeError: Cannot call method 'match' of undefined

I'm guessing some user with super privacy is hiding his user agent, or some bot.