mgmt: add body to face destroy control response
refs: #1392
Change-Id: I8b2e7927679224ab180692884f2d082ad3c66d4d
diff --git a/daemon/mgmt/face-manager.cpp b/daemon/mgmt/face-manager.cpp
index bbd495e..7ebe384 100644
--- a/daemon/mgmt/face-manager.cpp
+++ b/daemon/mgmt/face-manager.cpp
@@ -647,7 +647,10 @@
{
target->close();
}
- sendResponse(requestName, 200, "Success");
+
+ ndn::nfd::ControlResponse response;
+ setResponse(response, 200, "Success", options.wireEncode());
+ sendResponse(requestName, response);
}
void
diff --git a/tests/mgmt/face-manager.cpp b/tests/mgmt/face-manager.cpp
index d7eb176..5a46097 100644
--- a/tests/mgmt/face-manager.cpp
+++ b/tests/mgmt/face-manager.cpp
@@ -1104,7 +1104,7 @@
getFace()->onReceiveData +=
bind(&FaceFixture::callbackDispatch, this, _1,
- command->getName(), 200, "Success", expectedFaceEvent);
+ command->getName(), 200, "Success", boost::ref(encodedOptions), expectedFaceEvent);
destroyFace(command->getName(), options);