commit | 2b740e6af9c3d5862ac07d5e434c621d834150aa | [log] [tgz] |
---|---|---|
author | Wentao Shang <wentaoshang@gmail.com> | Fri Dec 07 00:02:53 2012 -0800 |
committer | Wentao Shang <wentaoshang@gmail.com> | Fri Dec 07 00:02:53 2012 -0800 |
tree | 1ad12fb65141097b4856dd9e32f7c32b63019606 | |
parent | bd63e469e06f2359b476b1b4d232e42ffcb21cd2 [diff] [blame] |
Fix bug in decoding NDN packet from multiple Websocket frames
diff --git a/js/encoding/BinaryXMLStructureDecoder.js b/js/encoding/BinaryXMLStructureDecoder.js index b31050f..92691f0 100644 --- a/js/encoding/BinaryXMLStructureDecoder.js +++ b/js/encoding/BinaryXMLStructureDecoder.js
@@ -41,7 +41,7 @@ if (this.offset >= input.length) // All the cases assume we have some input. return false; - + switch (this.state) { case BinaryXMLStructureDecoder.READ_HEADER_OR_CLOSE: // First check for XML_CLOSE.