Replace blank error pages with an error page

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7621 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-07-30 18:30:02 +00:00
parent 4695b631fb
commit f37484b454

View File

@ -211,15 +211,14 @@ class HttpServerSocket : public InspSocket
this->Write("HTTP/1.1 "+ConvToStr(response)+" "+Response(response)+"\r\nDate: ");
this->Write(asctime(timeinfo));
if (extraheaders.empty())
{
this->Write("Content-Type: text/html\r\n");
}
else
{
this->Write(extraheaders);
}
this->Write("Server: InspIRCd/m_httpd.so/1.1\r\nContent-Length: "+ConvToStr(size)+
"\r\nConnection: close\r\n\r\n");
if (response != 200)
this->Write("<html><head></head><body>Server error "+ConvToStr(response)+": "+Response(response)+"<br>"+
"<small>Powered by <a href='http://www.inspircd.org'>InspIRCd</a></small></body></html>\r\n");
}
virtual bool OnDataReady()