mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
eepSite reponse with long content
This commit is contained in:
parent
297afeb07b
commit
b6e0fdf920
@ -543,7 +543,12 @@ namespace util
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::string response ("HTTP/1.0 503 Not Implemented\r\n");
|
std::string content ("");
|
||||||
|
content += "<html>" + HTTPConnection::itoopieImage + "</html>";
|
||||||
|
std::string response ("HTTP/1.0 200 OK\r\n\r\n");
|
||||||
|
response += "Content-Length: " + boost::lexical_cast<std::string>(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->Send ((uint8_t *)response.c_str (), response.length (), 30);
|
||||||
m_Stream->Close ();
|
m_Stream->Close ();
|
||||||
}
|
}
|
||||||
|
@ -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 HandleDestinationRequest(const std::string& address, const std::string& method, const std::string& data, const std::string& uri);
|
||||||
virtual void RunRequest ();
|
virtual void RunRequest ();
|
||||||
|
|
||||||
private:
|
public:
|
||||||
|
|
||||||
static const std::string itoopieImage;
|
static const std::string itoopieImage;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user