Skip to content

Commit abcc96d

Browse files
kukginiryjones
authored andcommitted
fix: failed connectionless present proof on some case
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 <kukgini@users.noreply.github.com> Signed-off-by: Ry Jones <ry@linux.com>
1 parent 981cc6d commit abcc96d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demo/runners/support/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ async def _send_connectionless_proof_req(self, request: ClientRequest):
781781
return web.Response(status=404)
782782
proof_reg_txn = proof_exch["presentation_request_dict"]
783783
proof_reg_txn["~service"] = await self.service_decorator()
784-
if request.headers["Accept"] == "application/json":
784+
if request.headers.get("Accept") == "application/json":
785785
return web.json_response(proof_reg_txn)
786786
objJsonStr = json.dumps(proof_reg_txn)
787787
objJsonB64 = base64.b64encode(objJsonStr.encode("ascii"))

0 commit comments

Comments
 (0)