Skip to content

Commit

Permalink
fix: check if the header includes the string (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
cre8 authored Jul 30, 2024
1 parent 87d305f commit 8a48bb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/sd-jwt-vc/src/sd-jwt-vc-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ export class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {

// according to the spec the content type should be application/statuslist+jwt
if (
response.headers.get('content-type') !== 'application/statuslist+jwt'
!response.headers
.get('content-type')
?.includes('application/statuslist+jwt')
) {
throw new Error('Invalid content type');
}
Expand Down

0 comments on commit 8a48bb5

Please sign in to comment.