mirror of
https://github.com/znc/znc.git
synced 2026-05-18 07:15:54 +02:00
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:
+2
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user