Skip to content

Commit 147e3b0

Browse files
committed
bug fix.
1 parent 897f672 commit 147e3b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/httpserver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ class http_connection : public std::enable_shared_from_this<http_connection>
158158
beast::ostream(response_.body()) << lambda_(std::move(url));
159159
} else if (target.find("/api/reinit") == 0) {
160160
response_.set(http::field::content_type, "text/plain");
161-
beast::ostream(response_.body()) << "REINITReceived Reinitialize Request OK\r\n";
161+
std::string url = "REINIT";
162+
beast::ostream(response_.body()) << lambda_(std::move(url));
162163
} else {
163164
response_.result(http::status::not_found);
164165
response_.set(http::field::content_type, "text/plain");

0 commit comments

Comments
 (0)