Skip to content

Commit

Permalink
Fix the end argument of data slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowen Deng committed Aug 17, 2018
1 parent e7dc9c1 commit 74d452f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ module.exports = class Connection {
this.buffer = decoder.readAll()

if (this.authHandlers) {
return this.authHandlers.onSuccess(data.slice(0, this.offset + byteLength))
return this.authHandlers.onSuccess(data.slice(0, Decoder.int32Size() + expectedResponseSize))
}

const correlationId = response.readInt32()
Expand Down

0 comments on commit 74d452f

Please sign in to comment.