aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2022-06-10 15:11:18 +0200
committerStefan Boberg <[email protected]>2022-06-10 15:11:18 +0200
commita1845d78b974b8641a80b475f8e506a2d7d00e52 (patch)
treed889bc9cf16616828d46f66e1f1d3f397e9ec5e1
parentfrontend: simplified content-type logic (diff)
downloadzen-a1845d78b974b8641a80b475f8e506a2d7d00e52.tar.xz
zen-a1845d78b974b8641a80b475f8e506a2d7d00e52.zip
cidstore: propagate the correct content type
-rw-r--r--zenstore/cidstore.cpp2
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);