diff --git a/HTTPServer.cpp b/HTTPServer.cpp
index a4d3f1e5..5aeac9ed 100644
--- a/HTTPServer.cpp
+++ b/HTTPServer.cpp
@@ -60,8 +60,9 @@ namespace util
{
m_Buffer[bytes_transferred] = 0;
auto address = ExtractAddress ();
- if (address.find ('?') != std::string::npos)
- HandleDestinationRequest ("zmw2cyw2vj7f6obx3msmdvdepdhnw2ctc4okza2zjxlukkdfckhq");
+ LogPrint (address);
+ if (address.length () > 1) // not just '/'
+ HandleDestinationRequest (address.substr (1)); // exclude '/'
else
HandleRequest ();
boost::asio::async_write (*m_Socket, m_Reply.to_buffers(),
@@ -80,7 +81,7 @@ namespace util
{
char * http = strstr (get, "HTTP");
if (http)
- return std::string (get + 3, http - get - 3);
+ return std::string (get + 4, http - get - 5);
}
return "";
}
@@ -145,6 +146,7 @@ namespace util
s << "
";
}
}
+ s << "