Skip to content

Commit 395df77

Browse files
Merge branch 'main' into unit-test-cover-endorser-routes
2 parents 8bb1912 + bc519ce commit 395df77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aries_cloudagent/protocols/issue_credential/v1_0/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ async def credential_exchange_send_bound_offer(request: web.BaseRequest):
867867
context: AdminRequestContext = request["context"]
868868
outbound_handler = request["outbound_message_router"]
869869

870-
body = await request.json()
870+
body = await request.json() if request.body_exists else {}
871871
proposal_spec = body.get("counter_proposal")
872872

873873
credential_exchange_id = request.match_info["cred_ex_id"]

aries_cloudagent/protocols/issue_credential/v2_0/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ async def credential_exchange_send_bound_offer(request: web.BaseRequest):
957957
context: AdminRequestContext = request["context"]
958958
outbound_handler = request["outbound_message_router"]
959959

960-
body = await request.json()
960+
body = await request.json() if request.body_exists else {}
961961
filt_spec = body.get("filter")
962962
preview_spec = body.get("counter_preview")
963963

0 commit comments

Comments
 (0)