mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Changed debug print
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@620 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -311,7 +311,6 @@ bool CHTTPSock::PrintHeader(unsigned long uContentLength, const CString& sConten
|
||||
return false;
|
||||
}
|
||||
|
||||
DEBUG_ONLY(cout << "- " << uStatusId << " (" << sStatusMsg << ") [" << sContentType << "]" << endl);
|
||||
if (!sContentType.empty()) {
|
||||
m_sContentType = sContentType;
|
||||
}
|
||||
@@ -320,6 +319,8 @@ bool CHTTPSock::PrintHeader(unsigned long uContentLength, const CString& sConten
|
||||
m_sContentType = "text/html";
|
||||
}
|
||||
|
||||
DEBUG_ONLY(cout << "- " << uStatusId << " (" << sStatusMsg << ") [" << m_sContentType << "]" << endl);
|
||||
|
||||
Write("HTTP/1.0 " + CString::ToString(uStatusId) + " " + sStatusMsg + "\r\n");
|
||||
//Write("Date: Tue, 28 Jun 2005 20:45:36 GMT\r\n");
|
||||
Write("Server: ZNC " + CZNC::GetTag() + "\r\n");
|
||||
|
||||
Reference in New Issue
Block a user