File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -191,10 +191,11 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
191
191
// Request POST
192
192
audit (
193
193
'9ABE' ,
194
- 'MAY respond with 4xx status code if content-type is not supplied on POST requests' ,
194
+ 'SHOULD respond with 4xx status code if content-type is not supplied on POST requests' ,
195
195
async ( ) => {
196
196
const res = await fetchFn ( await getUrl ( opts . url ) , {
197
197
method : 'POST' ,
198
+ body : JSON . stringify ( { query : '{ __typename }' } ) ,
198
199
} ) ;
199
200
ressert ( res ) . status . toBeBetween ( 400 , 499 ) ;
200
201
} ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ exports[`should not change globally unique audit ids 1`] = `
44
44
} ,
45
45
{
46
46
" id" : " 9ABE" ,
47
- " name" : " MAY respond with 4xx status code if content-type is not supplied on POST requests" ,
47
+ " name" : " SHOULD respond with 4xx status code if content-type is not supplied on POST requests" ,
48
48
} ,
49
49
{
50
50
" id" : " 03D4" ,
You can’t perform that action at this time.
0 commit comments