Commit 88018234 authored by James Brock's avatar James Brock

sendMessage mhMetadata

Send the header metadata with a message instead of ignoring the header
metadata and sending "{}".

The header metadata is handled correctly on receipt of a message. Why
was it ignored on sending? Probably no-one ever needed it.
parent a992ad83
......@@ -344,6 +344,6 @@ sendMessage debug hmackey sock msg = do
hdr = header msg
parentHeaderStr = maybe "{}" encodeStrict $ mhParentHeader hdr
idents = mhIdentifiers hdr
metadata = "{}"
metadata = let Metadata mdobject = mhMetadata hdr in encodeStrict mdobject
content = encodeStrict msg
headStr = encodeStrict hdr
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment