Skip to content

Commit

Permalink
Merge pull request #6086 from nextcloud/backport/6084/stable-3.10
Browse files Browse the repository at this point in the history
[stable-3.10] Fix Chunk v2 upload headers
  • Loading branch information
claucambra authored Sep 22, 2023
2 parents a2aa0b1 + b3e6346 commit 186eb71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsync/propagateuploadng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 186eb71

Please sign in to comment.