Skip to content

Commit

Permalink
fix: last will should support binary payloads (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrmagicE authored Dec 11, 2022
1 parent 87349f1 commit 61e59bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/packets/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (c *Connect) unpackPayload(bufr *bytes.Buffer) error {
if err != nil {
return err
}
c.WillMsg, err = readUTF8String(true, bufr)
c.WillMsg, err = readUTF8String(false, bufr)
if err != nil {
return err
}
Expand Down

0 comments on commit 61e59bc

Please sign in to comment.