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:
prozacx
2006-02-08 08:42:16 +00:00
parent 81eef38929
commit dfd1620cd6

View File

@@ -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");