diff --git a/source_commit b/source_commit index 8daf7c4b..a991579c 100644 --- a/source_commit +++ b/source_commit @@ -1 +1 @@ -4c29320e4ed7ed042cff9d5111ec7b1555c274aa +e322cd8729d7f862a313ce1ef74681bb4fc7412b diff --git a/uws.js b/uws.js index 0eccec16..e6a57707 100644 --- a/uws.js +++ b/uws.js @@ -32,7 +32,7 @@ module.exports.DeclarativeResponse = class DeclarativeResponse { _appendInstruction(opcode, ...text) { this.instructions.push(opcode); text.forEach(str => { - const bytes = (typeof data === 'string') ? new TextEncoder().encode(str) : str; + const bytes = (typeof str === 'string') ? new TextEncoder().encode(str) : str; this.instructions.push(bytes.length, ...bytes); }); }