Skip to content

Commit 160d285

Browse files
TheTechmagedbluhm
authored andcommitted
feat: Add typ to messages
Signed-off-by: Colton Wolkins (Indicio work address) <[email protected]>
1 parent dff0ecb commit 160d285

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

didcomm_messaging/quickstart.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ async def send_http_message(
187187
if "id" not in message or not message["id"]:
188188
message["id"] = str(uuid.uuid4())
189189

190+
# Ensure that a typ is on the message
191+
if "typ" not in message or not message["typ"]:
192+
message["typ"] = "application/didcomm-plain+json"
193+
190194
# Encrypt/pack the message to our target
191195
packy = await dmp.pack(
192196
message=message,

0 commit comments

Comments
 (0)