diff options
| author | Stefan Boberg <[email protected]> | 2022-06-10 15:11:18 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2022-06-10 15:11:18 +0200 |
| commit | a1845d78b974b8641a80b475f8e506a2d7d00e52 (patch) | |
| tree | d889bc9cf16616828d46f66e1f1d3f397e9ec5e1 | |
| parent | frontend: simplified content-type logic (diff) | |
| download | zen-a1845d78b974b8641a80b475f8e506a2d7d00e52.tar.xz zen-a1845d78b974b8641a80b475f8e506a2d7d00e52.zip | |
cidstore: propagate the correct content type
| -rw-r--r-- | zenstore/cidstore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zenstore/cidstore.cpp b/zenstore/cidstore.cpp index 55bec817f..01eda4697 100644 --- a/zenstore/cidstore.cpp +++ b/zenstore/cidstore.cpp @@ -36,6 +36,8 @@ struct CidStore::Impl IoBuffer Payload = ChunkData.GetCompressed().Flatten().AsIoBuffer(); IoHash CompressedHash = IoHash::HashBuffer(Payload.Data(), Payload.Size()); + Payload.SetContentType(ZenContentType::kCompressedBinary); + CasStore::InsertResult Result = m_CasStore.InsertChunk(Payload, CompressedHash); AddCompressedCid(DecompressedId, CompressedHash); |