minor fix: Add missing res.end()
Add missing res.end() to avoid the hang/timeout.
Tested:
Enabled DBUS and unit tested specified code and
observed no hang.
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
Change-Id: I29457b9cebea4e2699c8227a46d1d5e06578a5bf
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index 38aa630..4de6ea0 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -2282,6 +2282,7 @@
// if there is more levels past the method name, something
// went wrong, return not found
res.result(boost::beast::http::status::not_found);
+ res.end();
return;
}
if (interfaceName.empty())