Skip to content

Commit

Permalink
Fixed parser#encodePayload
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed May 16, 2011
1 parent 9820716 commit db87502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ exports.decodePayload = function (data) {
for (var i = 1, length = ''; i < data.length; i++) {
if (data[i] == '\ufffd') {
ret.push(exports.decodePacket(data.substr(i + 1).substr(0, length)));
i += Number(length);
i += Number(length) + 1;
} else {
length += data[i];
}
Expand Down

0 comments on commit db87502

Please sign in to comment.