Permalink
Browse files

Merge pull request #24 from nshah/master

Handle missing User-Agent
  • Loading branch information...
mape committed Jan 17, 2012
2 parents e52de6e + 8e1be61 commit e2adc625cb8cd75f4a8fea46f23039bf125e67c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/assetmanager.js
View
@@ -303,7 +303,7 @@ module.exports = function assetManager (settings) {
var groupServed;
settings.forEach(function (group, groupName) {
if (group.route.test(req.url)) {
- var userAgent = req.headers['user-agent'];
+ var userAgent = req.headers['user-agent'] || '';
groupServed = group;
if (group.dataType === 'javascript') {
mimeType = 'application/javascript';

0 comments on commit e2adc62

Please sign in to comment.