Skip to content

Commit 3a87f3e

Browse files
committed
fix: Added accept headers on default service DID resolution
1 parent a4f5c82 commit 3a87f3e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/services/identity/default.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import type { CustomerEntity } from '../../database/entities/customer.entity.js'
1212

1313
export class DefaultIdentityService extends AbstractIdentityService {
1414
async resolveDid(did: string, options?: DIDResolutionOptions): Promise<DIDResolutionResult> {
15-
return Veramo.instance.resolveDid(this.initAgent(), did, options);
15+
return Veramo.instance.resolveDid(this.initAgent(), did, {
16+
...options,
17+
accept: options?.accept ?? 'application/ld+json;profile="https://w3id.org/did-resolution"',
18+
});
1619
}
1720

1821
async resolve(didUrl: string, dereferencing?: boolean): Promise<Response> {

0 commit comments

Comments
 (0)