Skip to content

Commit

Permalink
chore: fixed statuslist result content type
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Jan 31, 2025
1 parent 3279e5c commit fc5bef6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/vc-status-list-issuer-rest-api/src/api-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ export function getStatusListCredentialEndpoint(router: Router, context: IRequir
const driver = await getDriver({ id: buildStatusListId(request), correlationId, dbName: opts.dbName })
const details = await driver.getStatusList()
response.statusCode = 200
return response.type(details.statuslistContentType).send(details.statusListCredential)
response.set('Content-Type', details.statuslistContentType)
return response.send(details.statusListCredential)
} catch (e) {
return sendErrorResponse(response, 500, e.message as string, e)
}
Expand Down Expand Up @@ -193,7 +194,8 @@ export function updateW3CStatusEndpoint(router: Router, context: IRequiredContex
}

response.statusCode = 200
return response.type(details.statuslistContentType).send(details.statusListCredential)
response.set('Content-Type', details.statuslistContentType)
return response.send(details.statusListCredential)
} catch (e) {
return sendErrorResponse(response, 500, e.message as string, e)
}
Expand Down

0 comments on commit fc5bef6

Please sign in to comment.