mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Fix wrong encoding when specifying extra header with if-match path
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
parent
f44c7f00bb
commit
c69aba9b44
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ void PropagateUploadFileNG::startNextChunk()
|
|||
// "If-Match applies to the source, but we are interested in comparing the etag of the destination
|
||||
auto ifMatch = headers.take("If-Match");
|
||||
if (!ifMatch.isEmpty()) {
|
||||
headers["If"] = "<" + destination.toUtf8() + "> ([" + ifMatch + "])";
|
||||
headers["If"] = "<" + QUrl::toPercentEncoding(destination, "/") + "> ([" + ifMatch + "])";
|
||||
}
|
||||
if (!_transmissionChecksumHeader.isEmpty()) {
|
||||
qCInfo(lcPropagateUpload) << destination << _transmissionChecksumHeader;
|
||||
|
|
Loading…
Reference in a new issue