mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
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:
parent
4695b631fb
commit
f37484b454
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user