We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ffedb commit f12e1c0Copy full SHA for f12e1c0
src/mtconnect/sink/rest_sink/server.hpp
@@ -158,9 +158,9 @@ namespace mtconnect::sink::rest_sink {
158
/// @return `true` if the request was matched and dispatched
159
bool dispatch(SessionPtr session, RequestPtr request)
160
{
161
+ auto success = false;
162
try
163
- auto success = false;
164
std::string message;
165
if (request->m_command)
166
@@ -224,7 +224,7 @@ namespace mtconnect::sink::rest_sink {
224
session->fail(boost::beast::http::status::not_found, txt.str());
225
}
226
227
- return false;
+ return success;
228
229
230
/// @brief accept a connection from a client
0 commit comments