examples: fix consumer Interest

refs #5239

Change-Id: I9c69bf04040fd42d875fb064cc64ef47cbb0e9bc
diff --git a/examples/consumer.cpp b/examples/consumer.cpp
index 359f17b..e212b6f 100644
--- a/examples/consumer.cpp
+++ b/examples/consumer.cpp
@@ -50,6 +50,7 @@
   run()
   {
     Interest interest(Name("/example/testApp/randomData"));
+    interest.setCanBePrefix(true);
     interest.setMustBeFresh(true);
     interest.setInterestLifetime(3_s); // 3 seconds