filetransfer: fix decompression regression from 121edecf

121edecf65 added a new state field to
carry over content encoding settings from transfer to sink creation, but
never actually set that field.

Change-Id: I714b2efe745561e851b78a4791479b3501db8c72
This commit is contained in:
Pierre Bourdon 2024-05-11 14:06:10 +02:00
parent f6dc40cd1c
commit 38d825b21e
Signed by: delroth
GPG key ID: 6FB80DCD84DA0F1C

View file

@ -761,6 +761,10 @@ struct curlFileTransfer : public FileTransfer
state.wait_for(state->request, std::chrono::seconds(10));
}
if (state->encoding.empty()) {
state->encoding = transfer.encoding;
}
/* Append data to the buffer and wake up the calling
thread. */
state->data.append(data);