diff --git a/HTTPServer.cpp b/HTTPServer.cpp index 6d8d04b5..c1f4f55a 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -543,7 +543,12 @@ namespace util } else { - std::string response ("HTTP/1.0 503 Not Implemented\r\n"); + std::string content (""); + content += "" + HTTPConnection::itoopieImage + ""; + std::string response ("HTTP/1.0 200 OK\r\n\r\n"); + response += "Content-Length: " + boost::lexical_cast(content.length()) + "\r\n"; + response += "Content-Type: text/html\r\n"; + response += content; m_Stream->Send ((uint8_t *)response.c_str (), response.length (), 30); m_Stream->Close (); } diff --git a/HTTPServer.h b/HTTPServer.h index bef69bdf..6409aaae 100644 --- a/HTTPServer.h +++ b/HTTPServer.h @@ -78,7 +78,7 @@ namespace util virtual void HandleDestinationRequest(const std::string& address, const std::string& method, const std::string& data, const std::string& uri); virtual void RunRequest (); - private: + public: static const std::string itoopieImage; };