summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAppaRao Puli <apparao.puli@linux.intel.com>2020-03-30 22:51:57 +0300
committerAppaRao Puli <apparao.puli@linux.intel.com>2020-04-01 12:11:13 +0300
commit3c27ed3bb4ce887d2bd691a69314fe71c6a95942 (patch)
tree2a2727a8c4e808dc7697308e6ff48b1cbc47cc4a
parentf0af8594734a83a242d7a2af7accbd5ba45df1d9 (diff)
downloadbmcweb-3c27ed3bb4ce887d2bd691a69314fe71c6a95942.tar.xz
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
-rw-r--r--include/openbmc_dbus_rest.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index 38aa630e2e..4de6ea01e1 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -2282,6 +2282,7 @@ template <typename... Middlewares> void requestRoutes(Crow<Middlewares...> &app)
// 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())