Skip to content

Commit

Permalink
Merge pull request igrigorik#72 from sishen/master
Browse files Browse the repository at this point in the history
MaskedString#getbytes may return the utf8 encoded string
  • Loading branch information
Martyn Loughran committed Jan 12, 2012
2 parents ca98c11 + 4e80500 commit 8772645
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions em-websocket.gemspec
Expand Up @@ -21,9 +21,9 @@ Gem::Specification.new do |s|

s.add_dependency("eventmachine", ">= 0.12.9")
s.add_dependency("addressable", '>= 2.1.1')
s.add_development_dependency('em-spec', '~> 0.2.5')
s.add_development_dependency('em-spec', '~> 0.2.6')
s.add_development_dependency("eventmachine", "~> 0.12.10")
s.add_development_dependency('em-http-request', '~> 0.2.6')
s.add_development_dependency('rspec', "~> 2.6.0")
s.add_development_dependency('rspec', "~> 2.8.0")
s.add_development_dependency('rake')
end
2 changes: 1 addition & 1 deletion lib/em-websocket/masking04.rb
Expand Up @@ -29,7 +29,7 @@ def getbyte(index)
end

def getbytes(start_index, count)
data = ''
data = ''.force_encoding('ASCII-8BIT')
count.times do |i|
data << getbyte(start_index + i)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/em-websocket/version.rb
@@ -1,5 +1,5 @@
module EventMachine
module Websocket
VERSION = "0.3.6"
VERSION = "0.3.7"
end
end

0 comments on commit 8772645

Please sign in to comment.