mirror of
https://github.com/znc/znc.git
synced 2026-07-05 17:31:06 +02:00
Swap some lines in CHTTPSock::ReadLine
Copying sData and trimming it can be omitted if the function is left because m_bGotHeader is true. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1409 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+3
-3
@@ -51,13 +51,13 @@ void CHTTPSock::CheckPost() {
|
||||
}
|
||||
|
||||
void CHTTPSock::ReadLine(const CString& sData) {
|
||||
CString sLine = sData;
|
||||
sLine.TrimRight("\r\n");
|
||||
|
||||
if (m_bGotHeader) {
|
||||
return;
|
||||
}
|
||||
|
||||
CString sLine = sData;
|
||||
sLine.TrimRight("\r\n");
|
||||
|
||||
CString sName = sLine.Token(0);
|
||||
|
||||
if (sName.Equals("GET")) {
|
||||
|
||||
Reference in New Issue
Block a user