|
|
|
@ -422,7 +422,7 @@ namespace http {
@@ -422,7 +422,7 @@ namespace http {
|
|
|
|
|
s << " <a href=\"/?cmd=" << HTTP_COMMAND_ENABLE_TRANSIT << "\">Accept transit tunnels</a><br>\r\n"; |
|
|
|
|
#if (!defined(WIN32) && !defined(QT_GUI_LIB) && !defined(ANDROID)) |
|
|
|
|
if (Daemon.gracefullShutdownInterval) |
|
|
|
|
s << " <a href=\"/?cmd=" << HTTP_COMMAND_SHUTDOWN_CANCEL << "\">Cancel gracefull shutdown</a></br>"; |
|
|
|
|
s << " <a href=\"/?cmd=" << HTTP_COMMAND_SHUTDOWN_CANCEL << "\">Cancel gracefull shutdown</a><br>"; |
|
|
|
|
else |
|
|
|
|
s << " <a href=\"/?cmd=" << HTTP_COMMAND_SHUTDOWN_START << "\">Start gracefull shutdown</a><br>\r\n"; |
|
|
|
|
#endif |
|
|
|
@ -762,8 +762,8 @@ namespace http {
@@ -762,8 +762,8 @@ namespace http {
|
|
|
|
|
reply.add_header("Content-Type", "text/html"); |
|
|
|
|
reply.body = content; |
|
|
|
|
|
|
|
|
|
std::string res = reply.to_string(); |
|
|
|
|
boost::asio::async_write (*m_Socket, boost::asio::buffer(res), |
|
|
|
|
m_SendBuffer = reply.to_string(); |
|
|
|
|
boost::asio::async_write (*m_Socket, boost::asio::buffer(m_SendBuffer), |
|
|
|
|
std::bind (&HTTPConnection::Terminate, shared_from_this (), std::placeholders::_1)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|