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[] {
191191 // Request POST
192192 audit (
193193 '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' ,
195195 async ( ) => {
196196 const res = await fetchFn ( await getUrl ( opts . url ) , {
197197 method : 'POST' ,
198+ body : JSON . stringify ( { query : '{ __typename }' } ) ,
198199 } ) ;
199200 ressert ( res ) . status . toBeBetween ( 400 , 499 ) ;
200201 } ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ exports[`should not change globally unique audit ids 1`] = `
4444 } ,
4545 {
4646 " 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" ,
4848 } ,
4949 {
5050 " id" : " 03D4" ,
You can’t perform that action at this time.
0 commit comments