Skip to content

Commit

Permalink
fix: /well-known/did/json wasn't resolving anymore because of an inco…
Browse files Browse the repository at this point in the history
…rrect path match
  • Loading branch information
nklomp committed Aug 10, 2023
1 parent b8fd6a8 commit e94f4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uni-resolver-registrar-api/src/api-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export function didWebDomainEndpoint(router: Router, context: IRequiredContext,
}
let did: string
did = `did:web:${opts?.hostname ?? request.hostname}`
if (path !== '.well-known') {
if (path !== '/.well-known') {
if (opts?.disableSubPaths) {
return sendErrorResponse(response, 404, 'Not found')
}
Expand Down

0 comments on commit e94f4da

Please sign in to comment.