Skip to content

Commit 5d6969b

Browse files
Update response Content-Type to application/jwe (#177)
1 parent ff9dc86 commit 5d6969b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/routers/exchange.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def exchange_rid(
176176
}
177177
)
178178

179-
return Response(status_code=201, content=jwe, headers={"Content-Type": "Multipart/Encrypted"})
179+
return Response(status_code=201, content=jwe, headers={"Content-Type": "application/jwe"})
180180

181181
@router.post("/exchange/pseudonym", summary="Exchange pseudonym")
182182
def exchange_pseudonym(
@@ -224,5 +224,5 @@ def exchange_pseudonym(
224224
pub_key=pub_key_jwk
225225
)
226226

227-
return Response(status_code=201, content=jwe, headers={"Content-Type": "Multipart/Encrypted"})
227+
return Response(status_code=201, content=jwe, headers={"Content-Type": "application/jwe"})
228228

tests/test_rid_router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_create_happy_path(client: TestClient, org_service: OrgService, key_reso
6969
})
7070
assert response.status_code == 201
7171
assert response.content is not None
72-
assert response.headers["Content-Type"] == "Multipart/Encrypted"
72+
assert response.headers["Content-Type"] == "application/jwe"
7373
assert response.content.startswith(b"eyJra")
7474

7575
def test_invalid_scope(client: TestClient, org_service: OrgService, key_resolver: KeyResolver) -> None:

0 commit comments

Comments
 (0)