Skip to content

Commit

Permalink
fix: failed connectionless present proof on some case
Browse files Browse the repository at this point in the history
In demo menu (2a) connectionless proof request, If a mobile agent (for instance Trinsic) does not include Accept header when present proof request, the demo would fail.

Signed-off-by: kukgini <[email protected]>
Signed-off-by: Ry Jones <[email protected]>
  • Loading branch information
kukgini authored and ryjones committed Sep 9, 2022
1 parent 04a929c commit 9f07410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/runners/support/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ async def _send_connectionless_proof_req(self, request: ClientRequest):
return web.Response(status=404)
proof_reg_txn = proof_exch["presentation_request_dict"]
proof_reg_txn["~service"] = await self.service_decorator()
if request.headers["Accept"] == "application/json":
if request.headers.get("Accept") == "application/json":
return web.json_response(proof_reg_txn)
objJsonStr = json.dumps(proof_reg_txn)
objJsonB64 = base64.b64encode(objJsonStr.encode("ascii"))
Expand Down

0 comments on commit 9f07410

Please sign in to comment.