зеркало из https://github.com/nextcloud/desktop.git
Owncloud - virtual files smaller <1KB - problems with syncing
The issue was caused by gziped responses not providing a content lenght header. Fixes: #8248
This commit is contained in:
Родитель
96eaef6dba
Коммит
1b4ccea083
|
@ -205,8 +205,9 @@ void GETFileJob::slotMetaDataChanged()
|
|||
return;
|
||||
}
|
||||
|
||||
_contentLength = reply()->header(QNetworkRequest::ContentLengthHeader).toLongLong();
|
||||
if (_expectedContentLength != -1 && _contentLength != _expectedContentLength) {
|
||||
bool ok;
|
||||
_contentLength = reply()->header(QNetworkRequest::ContentLengthHeader).toLongLong(&ok);
|
||||
if (ok && _expectedContentLength != -1 && _contentLength != _expectedContentLength) {
|
||||
qCWarning(lcGetJob) << "We received a different content length than expected!"
|
||||
<< _expectedContentLength << "vs" << _contentLength;
|
||||
_errorString = tr("We received an unexpected download Content-Length.");
|
||||
|
|
Загрузка…
Ссылка в новой задаче