diff options
author | jade <lix@jade.fyi> | 2024-09-18 23:36:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@localhost> | 2024-09-18 23:36:25 +0000 |
commit | 79246a37337c5df2224dbc2461c722e1e678f6de (patch) | |
tree | a75bf243c2714564a1f0596e9771e820aa672a63 /src/libstore | |
parent | 0943b214c9d664453560c6490ee769d20714201b (diff) | |
parent | 789b19a0cfe583586c85657e88d5933d2dbe5715 (diff) |
Merge "util: fix brotli decompression of empty input" into main
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/filetransfer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc index f3e8a5312..10c810e49 100644 --- a/src/libstore/filetransfer.cc +++ b/src/libstore/filetransfer.cc @@ -337,7 +337,7 @@ struct curlFileTransfer : public FileTransfer // wrapping user `callback`s instead is not possible because the // Callback api expects std::functions, and copying Callbacks is // not possible due the promises they hold. - if (code == CURLE_OK && !dataCallback) { + if (code == CURLE_OK && !dataCallback && result.data.length() > 0) { result.data = decompress(encoding, result.data); } |