| OLD | NEW |
| 1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
| 2 | 2 |
| 3 #include "PluginIniFile.h" | 3 #include "PluginIniFile.h" |
| 4 #include "PluginChecksum.h" | 4 #include "PluginChecksum.h" |
| 5 #include "PluginHttpRequest.h" | 5 #include "PluginHttpRequest.h" |
| 6 #include "PluginClient.h" | 6 #include "PluginClient.h" |
| 7 #include "PluginSettings.h" | 7 #include "PluginSettings.h" |
| 8 #include "PluginSystem.h" | 8 #include "PluginSystem.h" |
| 9 #include "config.h" | 9 #include "config.h" |
| 10 | 10 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 { | 181 { |
| 182 return m_responseFile; | 182 return m_responseFile; |
| 183 } | 183 } |
| 184 | 184 |
| 185 bool CPluginHttpRequest::IsValidResponse() const | 185 bool CPluginHttpRequest::IsValidResponse() const |
| 186 { | 186 { |
| 187 m_responseFile->Clear(); | 187 m_responseFile->Clear(); |
| 188 m_responseFile->SetInitialChecksumString(m_script); | 188 m_responseFile->SetInitialChecksumString(m_script); |
| 189 | 189 |
| 190 bool isValidResponse = m_responseFile->ReadString(m_responseText); | 190 bool isValidResponse = m_responseFile->ReadString(m_responseText); |
| 191 if (isValidResponse && m_responseFile->IsValidChecksum()) | 191 if (isValidResponse) |
| 192 { | 192 { |
| 193 CPluginIniFile::TSectionData status = m_responseFile->GetSectionData(_T(
"Status")); | 193 CPluginIniFile::TSectionData status = m_responseFile->GetSectionData(_T(
"Status")); |
| 194 CPluginIniFile::TSectionData::iterator it; | 194 CPluginIniFile::TSectionData::iterator it; |
| 195 | 195 |
| 196 it = status.find(_T("status")); | 196 it = status.find(_T("status")); |
| 197 if (it != status.end()) | 197 if (it != status.end()) |
| 198 { | 198 { |
| 199 isValidResponse = (it->second == "OK"); | 199 isValidResponse = (it->second == "OK"); |
| 200 } | 200 } |
| 201 else | 201 else |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 // Free the memory allocated to the buffer. | 465 // Free the memory allocated to the buffer. |
| 466 } | 466 } |
| 467 | 467 |
| 468 outBuffer.ReleaseBuffer(); | 468 outBuffer.ReleaseBuffer(); |
| 469 | 469 |
| 470 } while (dwSize > 0); | 470 } while (dwSize > 0); |
| 471 } | 471 } |
| 472 | 472 |
| 473 return bResult; | 473 return bResult; |
| 474 } | 474 } |
| OLD | NEW |