aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/packageformat.cpp
diff options
context:
space:
mode:
authorLiam Mitchell <[email protected]>2026-03-09 18:40:40 -0700
committerLiam Mitchell <[email protected]>2026-03-09 18:40:40 -0700
commit97aa4e5c48305647a5d8f09da5f24bc1ce5540f3 (patch)
tree11062e72f4342aeb2f16ac19d6af20ac0e4acd78 /src/zenhttp/packageformat.cpp
parentMerge branch 'main' into lm/oidctoken-exe-path (diff)
parentupdated chunk–block analyser (#818) (diff)
downloadzen-97aa4e5c48305647a5d8f09da5f24bc1ce5540f3.tar.xz
zen-97aa4e5c48305647a5d8f09da5f24bc1ce5540f3.zip
Merge branch 'main' into lm/oidctoken-exe-path
Diffstat (limited to 'src/zenhttp/packageformat.cpp')
-rw-r--r--src/zenhttp/packageformat.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/zenhttp/packageformat.cpp b/src/zenhttp/packageformat.cpp
index 708238224..cbfe4d889 100644
--- a/src/zenhttp/packageformat.cpp
+++ b/src/zenhttp/packageformat.cpp
@@ -581,7 +581,7 @@ ParsePackageMessage(IoBuffer Payload, std::function<IoBuffer(const IoHash&, uint
ZEN_ASSERT(AttachmentBufferCopy.Size() == AttachmentSize);
AttachmentBufferCopy.GetMutableView().CopyFrom(AttachmentBuffer.GetView());
- Attachments.emplace_back(SharedBuffer{AttachmentBufferCopy});
+ Attachments.emplace_back(CbAttachment(SharedBuffer{AttachmentBufferCopy}, Entry.AttachmentHash));
}
else
{
@@ -805,6 +805,8 @@ CbPackageReader::Finalize()
#if ZEN_WITH_TESTS
+TEST_SUITE_BEGIN("http.packageformat");
+
TEST_CASE("CbPackage.Serialization")
{
// Make a test package
@@ -926,6 +928,8 @@ TEST_CASE("CbPackage.LocalRef")
Reader.Finalize();
}
+TEST_SUITE_END();
+
void
forcelink_packageformat()
{