In expressInterest, copy all fields from template except name and nonce.
diff --git a/js/NDN.js b/js/NDN.js
index 2c12e3f..5934cdd 100644
--- a/js/NDN.js
+++ b/js/NDN.js
@@ -173,8 +173,14 @@
interest = new Interest(name);
if (template != null) {
- // TODO: Exactly what do we copy from template?
- interest.interestLifetime = template.interestLifetime;
+ interest.minSuffixComponents = template.minSuffixComponents;
+ interest.maxSuffixComponents = template.maxSuffixComponents;
+ interest.publisherPublicKeyDigest = template.publisherPublicKeyDigest;
+ interest.exclude = template.exclude;
+ interest.childSelector = template.childSelector;
+ interest.answerOriginKind = template.answerOriginKind;
+ interest.scope = template.scope;
+ interest.interestLifetime = template.interestLifetime;
}
else
interest.interestLifetime = 4200;