修复昵称乱码问题

This commit is contained in:
2026-03-10 16:10:29 +08:00
parent abed04da1b
commit b11d1c94c1
8 changed files with 118 additions and 18 deletions

View File

@@ -37,7 +37,7 @@ CParseData::~CParseData(void)
bool CParseData::ParseRequests(LPBYTE pData, int nLen)
{
//m_strBuffer = DecodeData(pData, nLen);
m_strBuffer = pData;
m_strBuffer = CString((LPCSTR)pData, nLen);
CString strTemp;
int nIndex;
@@ -122,6 +122,14 @@ void CParseData::ProcessRequests()
// add url to header collection
m_Headers.Add("url", strURL);
// [Trace] log parsed request line
{
CString strLog;
strLog.Format(_T("[WebGate][Parse] method=[%s], url=[%s], version=[%s]"),
strMethod, strURL, strVersion);
CTraceService::TraceString(strLog, TraceLevel_Normal);
}
// check for arguments
nIndex = strURL.Find('?');
if (nIndex != -1)