Skip to content

Commit d9fde05

Browse files
committed
feat: remove config unify logs for all cache clients (#4558)
Signed-off-by: Mariusz Jasuwienas <[email protected]>
1 parent e4e9e04 commit d9fde05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/server/src/compliance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const INVALID_METHOD_RESPONSE_BODY = {
2727
};
2828

2929
const makeSureBodyExistsAndCanBeChecked = (ctx: IResponseContext) => {
30-
if (ctx.status === 404) return false;
30+
if (ctx.status === 200) return false;
3131

3232
if (!ctx.body) {
3333
ctx.status = 400;

packages/server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export async function initializeServer() {
279279
ctx.status = 200;
280280
} else {
281281
ctx.status = 403;
282-
ctx.body = INVALID_METHOD_RESPONSE_BODY;
282+
ctx.body = structuredClone(INVALID_METHOD_RESPONSE_BODY);
283283
}
284284
});
285285

0 commit comments

Comments
 (0)