Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 6a549e1

Browse files
committed
Fix bug
Session objects must be encoded in UTF8, not UTF16.
1 parent bb5ec2e commit 6a549e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func (srv *Server) handleSessionRestore(msg *Message) error {
221221
srv.SessionRegistry.register(msg.Client)
222222

223223
msg.fulfill(Payload{
224-
Encoding: EncodingUtf16,
224+
Encoding: EncodingUtf8,
225225
Data: encodedSession,
226226
})
227227

0 commit comments

Comments
 (0)