mirror of
https://github.com/znc/znc.git
synced 2026-08-10 02:43:05 +02:00
Revert unintended change from revision 2029 and added a comment so it won't happen again.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2036 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+6
-1
@@ -43,7 +43,12 @@ void CHTTPSock::ReadData(const char* data, size_t len) {
|
||||
|
||||
bool CHTTPSock::SendCookie(const CString& sKey, const CString& sValue) {
|
||||
if (!sKey.empty() && !sValue.empty()) {
|
||||
m_msResponseCookies[sKey] = sValue;
|
||||
if (m_msRequestCookies.find(sKey) == m_msRequestCookies.end() ||
|
||||
m_msRequestCookies[sKey].StrCmp(sValue) != 0)
|
||||
{
|
||||
// only queue a Set-Cookie to be sent if the client didn't send a Cookie header of the same name+value.
|
||||
m_msResponseCookies[sKey] = sValue;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user