mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Fix JsonApiJob incorrect 'statuscode' parsing.
Signed-off-by: alex-z <blackslayer4@gmail.com>
This commit is contained in:
parent
c1dab7e4cb
commit
1b8448402a
1 changed files with 1 additions and 1 deletions
|
@ -901,7 +901,7 @@ bool JsonApiJob::finished()
|
|||
qCWarning(lcJsonApiJob) << "Nothing changed so nothing to retrieve - status code: " << httpStatusCode;
|
||||
statusCode = httpStatusCode;
|
||||
} else {
|
||||
QRegExp rex(R"("statuscode":(\d+),)");
|
||||
QRegExp rex(R"("statuscode":(\d+))");
|
||||
// example: "{"ocs":{"meta":{"status":"ok","statuscode":100,"message":null},"data":{"version":{"major":8,"minor":"... (504)
|
||||
if (jsonStr.contains(rex)) {
|
||||
statusCode = rex.cap(1).toInt();
|
||||
|
|
Loading…
Reference in a new issue