mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-22 00:42:04 +02:00
Read full hatchet response before passing it to QJson
This commit is contained in:
parent
4ceb94fd8f
commit
36c34a49ed
@ -425,11 +425,12 @@ HatchetAccount::parseReply( QNetworkReply* reply, bool& okRet ) const
|
||||
}
|
||||
|
||||
QJson::Parser p;
|
||||
resp = p.parse( reply, &ok ).toMap();
|
||||
QByteArray replyData = reply->readAll();
|
||||
resp = p.parse( replyData, &ok ).toMap();
|
||||
|
||||
if ( !ok )
|
||||
{
|
||||
tLog() << Q_FUNC_INFO << "Error parsing JSON from server";
|
||||
tLog() << Q_FUNC_INFO << "Error parsing JSON from server" << replyData;
|
||||
okRet = false;
|
||||
return resp;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user