Skip to content

Commit

Permalink
MiniSSL::Socket#write - use data.byteslice(wrote..-1) (#2543)
Browse files Browse the repository at this point in the history
Instead of data[wrote..-1]
  • Loading branch information
MSP-Greg committed Feb 1, 2021
1 parent 37f47ca commit a5c4b1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions History.md
@@ -1,3 +1,8 @@
## 5.2.1 / 2021-01-

* Bugfixes
* MiniSSL::Socket#write - use data.byteslice(wrote..-1) ([#2543])

## 5.2.0 / 2021-01-27

* Features
Expand Down
2 changes: 1 addition & 1 deletion lib/puma/minissl.rb
Expand Up @@ -133,7 +133,7 @@ def write(data)

return data_size if need == 0

data = data[wrote..-1]
data = data.byteslice(wrote..-1)
end
end

Expand Down

0 comments on commit a5c4b1e

Please sign in to comment.