From a5ba2101b5f2cabd552696883ef23e2b060ec97f Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 4 Sep 2011 13:34:04 +0100 Subject: [PATCH] user-agent fix --- node/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/app.js b/node/app.js index 6ef776b..670e110 100644 --- a/node/app.js +++ b/node/app.js @@ -486,7 +486,7 @@ this.httpHandler = function (request, response) { kiwi.fileServer.serve(request, response); }); } else if (uri.pathname === '/' || uri_parts[1] === 'client') { - useragent = (request.headers) ? request.headers['user-agent'] : ''; + useragent = (typeof request.headers === 'string') ? request.headers['user-agent'] : ''; if (useragent.match(/android/i) !== -1) { agent = 'android'; touchscreen = true; -- 2.25.1