mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix Chunk v2 upload headers
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
395edd95b2
commit
a045dd71ae
@ -360,11 +360,11 @@ void PropagateUploadFileNG::startNextChunk()
|
||||
return;
|
||||
}
|
||||
|
||||
QMap<QByteArray, QByteArray> headers;
|
||||
auto headers = PropagateUploadFileCommon::headers();
|
||||
headers["OC-Chunk-Offset"] = QByteArray::number(_sent);
|
||||
|
||||
const auto destination = QDir::cleanPath(propagator()->account()->davUrl().path() + propagator()->fullRemotePath(_fileToUpload._file));
|
||||
headers["Destination"] = QUrl::toPercentEncoding(destination);
|
||||
headers["Destination"] = destination.toUtf8();
|
||||
|
||||
_sent += _currentChunkSize;
|
||||
const auto url = chunkUrl(_currentChunk);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user