diff --git a/HTTPProxy.cpp b/HTTPProxy.cpp index 5cdf70b4..810e5a18 100644 --- a/HTTPProxy.cpp +++ b/HTTPProxy.cpp @@ -114,7 +114,7 @@ namespace proxy if (sp != std::string::npos) { std::string base_url (url.begin()+7, url.begin()+sp); - LogPrint ("Base URL is: ", base_url); + LogPrint ("Base URL is: ", base_url, "\n"); if ( sp != std::string::npos ) { std::string query (url.begin ()+sp+1, url.end ()); @@ -169,7 +169,7 @@ namespace proxy leaseSet = i2p::data::netdb.FindLeaseSet (destination); if (!leaseSet || !leaseSet->HasNonExpiredLeases ()) // still no LeaseSet { - m_Reply.content = leaseSet ? "Leases expired" : "LeaseSet not found"; + m_Reply.content = leaseSet ? ""+ i2p::proxy::itoopieImage +"
Leases expired" : ""+ i2p::proxy::itoopieImage +"LeaseSet not found"; m_Reply.headers.resize(2); m_Reply.headers[0].name = "Content-Length"; m_Reply.headers[0].value = boost::lexical_cast(m_Reply.content.size()); @@ -199,7 +199,7 @@ namespace proxy return; } else // nothing received - ss << "Not responding"; + ss << ""+ i2p::proxy::itoopieImage +"
Not responding"; s->Close (); DeleteStream (s); diff --git a/HTTPProxy.h b/HTTPProxy.h index 1c2a7168..58ccc9c4 100644 --- a/HTTPProxy.h +++ b/HTTPProxy.h @@ -10,6 +10,8 @@ namespace i2p { namespace proxy { + std::string itoopieImage = "\"\""; + class HTTPConnection { struct header