Merge commit 'refs/pull/349/head' of github.com:znc/znc

This commit is contained in:
Alexey Sokolov
2013-11-14 08:27:50 +04:00
6 changed files with 66 additions and 0 deletions
+2
View File
@@ -127,6 +127,8 @@ void CHTTPSock::ReadLine(const CString& sData) {
m_uPostLen = sLine.Token(1).ToULong();
if (m_uPostLen > MAX_POST_SIZE)
PrintErrorPage(413, "Request Entity Too Large", "The request you sent was too large.");
} else if (sName.Equals("X-Forwarded-For:")) {
m_sForwardedIP = sLine.Token(1).TrimRight_n(",");
} else if (sName.Equals("If-None-Match:")) {
// this is for proper client cache support (HTTP 304) on static files:
m_sIfNoneMatch = sLine.Token(1, true);