braid-http
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -252,3 +252,5 @@ var assert = require('assert') | ||
// Check the Useragent to work around Firefox bugs | ||
if (req.headers['user-agent'].toLowerCase().indexOf('firefox') > -1) | ||
if (req.headers['user-agent'] | ||
&& typeof req.headers['user-agent'] === 'string' | ||
&& req.headers['user-agent'].toLowerCase().indexOf('firefox') > -1) | ||
res.is_firefox = true | ||
@@ -255,0 +257,0 @@ |
{ | ||
"name": "braid-http", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "An implementation of Braid-HTTP for Node.js and Browsers", | ||
@@ -5,0 +5,0 @@ "scripts": { |
41288
821