Fixed remote hash retrieval
This commit is contained in:
@@ -87,8 +87,8 @@ void FileDownloader::computeRemoteHash()
|
|||||||
} else {
|
} else {
|
||||||
QString aString = m_hashReply->readAll();
|
QString aString = m_hashReply->readAll();
|
||||||
|
|
||||||
int index = aString.indexOf("SHA1 Checksum: ");
|
int index = aString.indexOf("<span id=\"sha1\">");
|
||||||
m_remoteHash = aString.mid(index+52, 40);
|
m_remoteHash = aString.mid(index+16, 40);
|
||||||
if(m_localHash != m_remoteHash)
|
if(m_localHash != m_remoteHash)
|
||||||
{ /* We download the real file */
|
{ /* We download the real file */
|
||||||
m_state = DOWNLOADING_FILE;
|
m_state = DOWNLOADING_FILE;
|
||||||
|
|||||||
Reference in New Issue
Block a user