diff --git a/src/audits/server.ts b/src/audits/server.ts index 8612d74e..d7b4f377 100644 --- a/src/audits/server.ts +++ b/src/audits/server.ts @@ -191,10 +191,11 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] { // Request POST audit( '9ABE', - 'MAY respond with 4xx status code if content-type is not supplied on POST requests', + 'SHOULD respond with 4xx status code if content-type is not supplied on POST requests', async () => { const res = await fetchFn(await getUrl(opts.url), { method: 'POST', + body: JSON.stringify({ query: '{ __typename }' }), }); ressert(res).status.toBeBetween(400, 499); }, diff --git a/tests/__snapshots__/audits.test.ts.snap b/tests/__snapshots__/audits.test.ts.snap index d3c3b899..d8e9c5ed 100644 --- a/tests/__snapshots__/audits.test.ts.snap +++ b/tests/__snapshots__/audits.test.ts.snap @@ -44,7 +44,7 @@ exports[`should not change globally unique audit ids 1`] = ` }, { "id": "9ABE", - "name": "MAY respond with 4xx status code if content-type is not supplied on POST requests", + "name": "SHOULD respond with 4xx status code if content-type is not supplied on POST requests", }, { "id": "03D4",