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 3114b04 commit eeae094Copy full SHA for eeae094
src/httpserver.cpp
@@ -156,6 +156,9 @@ class http_connection : public std::enable_shared_from_this<http_connection>
156
response_.set(http::field::content_type, "application/json");
157
std::string url = "BOTH" + UriDecode(target.substr(16));
158
beast::ostream(response_.body()) << lambda_(std::move(url));
159
+ } else if (target.find("/api/reinit") == 0) {
160
+ response_.set(http::field::content_type, "text/plain");
161
+ beast::ostream(response_.body()) << "Received Reinitialize Request OK\r\n";
162
} else {
163
response_.result(http::status::not_found);
164
response_.set(http::field::content_type, "text/plain");
0 commit comments