From dfd1620cd6928d3f59b3108d90d1ba59df696db1 Mon Sep 17 00:00:00 2001 From: prozacx Date: Wed, 8 Feb 2006 08:42:16 +0000 Subject: [PATCH] Changed debug print git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@620 726aef4b-f618-498e-8847-2d620e286838 --- HTTPSock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HTTPSock.cpp b/HTTPSock.cpp index bae76b1e..942cde7f 100644 --- a/HTTPSock.cpp +++ b/HTTPSock.cpp @@ -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");