Skip to content

Commit 742fd26

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

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
@@ -191,6 +191,10 @@ async def send_http_message(
191191
if "typ" not in message or not message["typ"]:
192192
message["typ"] = "application/didcomm-plain+json"
193193

194+
# Ensure that a return-route is on the message
195+
if "return-route" not in message or not message["return-route"]:
196+
message["return-route"] = "all"
197+
194198
# Encrypt/pack the message to our target
195199
packy = await dmp.pack(
196200
message=message,

0 commit comments

Comments
 (0)