CHTTPSock: Fix for latest commit

We have to grab the contents of the read buffer before we do DisableReadLine().


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2149 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-09-27 18:52:44 +00:00
parent 2809dd1108
commit aca3535c8d
+2 -1
View File
@@ -115,7 +115,6 @@ void CHTTPSock::ReadLine(const CString& sData) {
m_sIfNoneMatch = sLine.Token(1, true);
} else if (sLine.empty()) {
m_bGotHeader = true;
DisableReadLine();
if (m_bPost) {
m_sPostData = GetInternalReadBuffer();
@@ -123,6 +122,8 @@ void CHTTPSock::ReadLine(const CString& sData) {
} else {
GetPage();
}
DisableReadLine();
}
}