sinatra-websocket 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,8 @@ module SinatraWebsocket
5
5
 
6
6
  # Taken from skinny https://github.com/sj26/skinny and updated to support Firefox
7
7
  def websocket?
8
- env['HTTP_CONNECTION'].split(',').map(&:strip).map(&:downcase).include?('upgrade') &&
8
+ env['HTTP_CONNECTION'] && env['HTTP_UPGRADE'] &&
9
+ env['HTTP_CONNECTION'].split(',').map(&:strip).map(&:downcase).include?('upgrade') &&
9
10
  env['HTTP_UPGRADE'].downcase == 'websocket'
10
11
  end
11
12
 
@@ -1,4 +1,4 @@
1
1
  module SinatraWebsocket
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-14 00:00:00.000000000 Z
12
+ date: 2012-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
@@ -95,3 +95,4 @@ signing_key:
95
95
  specification_version: 3
96
96
  summary: Simple, upgradable WebSockets for Sinatra.
97
97
  test_files: []
98
+ has_rdoc: