plezi 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1850b2cae3cd76cdda78e0c52b8437c923625085
4
- data.tar.gz: 671b9720bea6f662c77cc7806ecd86cd5bb0c7c7
3
+ metadata.gz: b2bd42dabd7c03ae27f9003f19fb7b128c86a01e
4
+ data.tar.gz: 01f3b6fb4a4915d4dc7ce053e85ab9447688cdd8
5
5
  SHA512:
6
- metadata.gz: 0f9083419bd7c5dcd3f10dfa1004e247b8960e711a85568546a5cfd59643bca952b042f1a3db9e9c9cac763a90da8e84e69f101e265fc5809a5dc265d8e21552
7
- data.tar.gz: aea670217030a98ad2e3329ceb65ef59b18356535d71c9c75bd510ec098e26dc95079e627ea04aaee593da0c71293caa1e8405760d36ed1b65afafc6edd6e48e
6
+ metadata.gz: 91abf0160f443aa3a97fce4f3d107656d1afd79c4aaeb5d608b4b1aa506687248830cc36fe302c8d91f467d6059499d117d638d7aae47a525eb5c688a6ed4d0e
7
+ data.tar.gz: 12c0442612e8806bf5307b819bcf44f3536670c5135f3f93ff7120a1420652a0dbd072bb9ddf96093de3d8818d9e95a505ff93446f9bd94d88d72742cfba11a8
@@ -1,4 +1,9 @@
1
1
  #Change Log
2
+ ***
3
+
4
+ Change log v.0.8.2
5
+
6
+ **fix**: fixed an issue where websocket clients that didn't send the `sec-websocket-extensions` header would cause an exception to be raised and their connections would be refused.
2
7
 
3
8
  ***
4
9
 
@@ -83,7 +83,7 @@ module Plezi
83
83
  response['sec-websocket-version'] = '13'
84
84
  # Note that the client is only offering to use any advertised extensions
85
85
  # and MUST NOT use them unless the server indicates that it wishes to use the extension.
86
- request['sec-websocket-extensions'].split(/[\s]*[,][\s]*/).each {|ex| @extentions << ex.split(/[\s]*;[\s]*/) if SUPPORTED_EXTENTIONS[ex.split(/[\s]*;[\s]*/)[0]]}
86
+ request['sec-websocket-extensions'].to_s.split(/[\s]*[,][\s]*/).each {|ex| @extentions << ex.split(/[\s]*;[\s]*/) if SUPPORTED_EXTENTIONS[ex.split(/[\s]*;[\s]*/)[0]]}
87
87
  response['sec-websocket-extensions'] = @extentions.map {|e| e[0] } .join (',')
88
88
  response.headers.delete 'sec-websocket-extensions' if response['sec-websocket-extensions'].empty?
89
89
  response['Sec-WebSocket-Accept'] = Digest::SHA1.base64digest(request['sec-websocket-key'] + '258EAFA5-E914-47DA-95CA-C5AB0DC85B11')
@@ -1,3 +1,3 @@
1
1
  module Plezi
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plezi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-28 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler