Merge 1.5.4 changes back to master.

This commit is contained in:
Mike Jumper
2023-08-29 10:52:46 -07:00

View File

@@ -208,7 +208,7 @@ Guacamole.Parser = function Parser() {
// Immediately truncate buffer if its contents have been
// completely parsed, so that the next call to receive()
// need not append to the buffer unnecessarily
if (elementEnd + 1 === buffer.length) {
if (!isBuffer && elementEnd + 1 === buffer.length) {
elementEnd = -1;
buffer = '';
}