Bug fix. Use Name.match for name matching.
diff --git a/js/testing/test-throughput-ws.html b/js/testing/test-throughput-ws.html
index 6544798..c99af33 100644
--- a/js/testing/test-throughput-ws.html
+++ b/js/testing/test-throughput-ws.html
@@ -39,15 +39,20 @@
document.getElementById('content').innerHTML += "<p>Total number of blocks: " + this.totalBlocks + "</p>";
return Closure.RESULT_OK;
}
+ /*
+ if (kind == Closure.UPCALL_CONTENT_BAD) {
+ console.log("NdnProtocol.ContentClosure: signature verification failed");
+ return Closure.RESULT_OK;
+ }
if (!(kind == Closure.UPCALL_CONTENT ||
kind == Closure.UPCALL_CONTENT_UNVERIFIED))
// The upcall is not for us.
return Closure.RESULT_ERR;
-
+ */
var contentObject = upcallInfo.contentObject;
if (contentObject.content == null) {
- console.log("NdnProtocol.ContentClosure: contentObject.content is null\n");
+ console.log("NdnProtocol.ContentClosure: contentObject.content is null");
return Closure.RESULT_ERR;
}