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