Permalink
Browse files

Fixed bug in the browser check middleware (was not able to handle hea…

…dless browsers)
  • Loading branch information...
1 parent e70aab0 commit 555fa210e1e86763aae8b3b805e315d33a23fe08 @paulbjensen paulbjensen committed Jun 24, 2011
Showing with 10 additions and 2 deletions.
  1. +5 −0 HISTORY.md
  2. +1 −1 README.md
  3. +3 −0 lib/http_middleware/browser_check.coffee
  4. +1 −1 package.json
View
@@ -1,3 +1,8 @@
+0.1.01 / 2011-06-24
+===================
+
+* Fixed bug in the browser check middleware (was not able to handle headless browsers)
+
0.1.00 / 2011-06-23
===================
View
@@ -1,7 +1,7 @@
![SocketStream!](https://github.com/socketstream/socketstream/raw/master/new_project/public/images/logo.png)
-Latest release: 0.1.00 ([view changelog](https://github.com/socketstream/socketstream/blob/master/HISTORY.md))
+Latest release: 0.1.01 ([view changelog](https://github.com/socketstream/socketstream/blob/master/HISTORY.md))
Twitter: socketstream - Google Group: http://groups.google.com/group/socketstream
@@ -35,6 +35,9 @@ isValidRequest = (request) ->
# If Strict checking for browsers which have native websocket support
if SS.config.browser_check.strict
+ # Capture headless browsers (e.g. spiders)
+ return true unless ua?
+
# Allow Chrome version 4 and above
if ua.match(/Chrom(e|ium)/)
re = new RegExp("Chrom(e|ium)/([0-9]{1,})")
View
@@ -1,7 +1,7 @@
{
"name": "socketstream",
"description": "A phenomenally fast real-time web framework for Node.js",
- "version": "0.1.00",
+ "version": "0.1.01",
"homepage": "http://www.socketstream.org",
"author": "Owen Barnes <info@socketstream.org>",
"contributors": [

0 comments on commit 555fa21

Please sign in to comment.