Fix bug in decoding NDN packet from multiple Websocket frames
diff --git a/js/testing/test-get-async.html b/js/testing/test-get-async.html
index ebb6b50..eff7aee 100644
--- a/js/testing/test-get-async.html
+++ b/js/testing/test-get-async.html
@@ -24,11 +24,14 @@
// Do nothing.
} else if (kind == Closure.UPCALL_CONTENT) {
var content = upcallInfo.contentObject;
+ //console.log(content.name);
nameStr = escape(content.name.getName());
- console.log("In callback, nameStr: " + nameStr);
- console.log("In callback, content: ");
- console.log(content);
- document.getElementById('content').innerHTML = contentObjectToHtml(content);
+ document.getElementById('content').innerHTML += "<p>Name string: " + nameStr + "</p>";
+ document.getElementById('content').innerHTML += "<p>Content buffer length: " + content.content.length + "</p>";
+ //console.log("In callback, nameStr: " + nameStr);
+ //console.log("In callback, content: ");
+ //console.log(content);
+ document.getElementById('content').innerHTML += contentObjectToHtml(content);
} else if (kind == Closure.UPCALL_INTEREST_TIMED_OUT) {
console.log("Closure.upcall called with interest time out.");
}