Skip to content

Commit

Permalink
fix: encode universal systemcheck handler as json
Browse files Browse the repository at this point in the history
  • Loading branch information
soniqua committed Aug 20, 2024
1 parent 4448b13 commit d0c65b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion lib/client/routesHandler/systemCheckHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const systemCheckHandler = async (req: Request, res: Response) => {
}
validationResults.push(result);
}
res.status(isValidationPassing ? 200 : 500).send(validationResults);
res.status(isValidationPassing ? 200 : 500).json(validationResults);
} else {
const brokerClientValidationMethod =
clientOpts.config.brokerClientValidationMethod || 'GET';
Expand Down
3 changes: 0 additions & 3 deletions test/functional/systemcheck-universal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,6 @@ describe('broker client systemcheck endpoint', () => {
`http://localhost:${bc.port}/systemcheck`,
{
timeout: 10_000,
headers: {
'Content-Type': 'application/json',
},
},
);

Expand Down

0 comments on commit d0c65b7

Please sign in to comment.