Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…dless browsers)
  • Loading branch information...
commit 555fa210e1e86763aae8b3b805e315d33a23fe08 1 parent e70aab0
Paul Jensen paulbjensen authored
5 HISTORY.md
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
===================
2  README.md
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
3  lib/http_middleware/browser_check.coffee
View
@@ -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,})")
2  package.json
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": [
Please sign in to comment.
Something went wrong with that request. Please try again.