Skip to content

Commit

Permalink
fix(server): Added missing encoding argument to server-handshake (#1976)
Browse files Browse the repository at this point in the history
Resolves #1975
  • Loading branch information
tims-bsquare committed Apr 25, 2023
1 parent 037d5a5 commit a4b6b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/server_handshake.js
Expand Up @@ -138,7 +138,7 @@ class ServerHandshake extends Command {
break;
case CommandCode.FIELD_LIST:
if (connection.listeners('field_list').length) {
const table = packet.readNullTerminatedString();
const table = packet.readNullTerminatedString(encoding);
const fields = packet.readString(undefined, encoding);
connection.emit('field_list', table, fields);
} else {
Expand Down

0 comments on commit a4b6b22

Please sign in to comment.