Skip to content

Conversation

@DoctorJohn
Copy link
Contributor

The audit function of 9ABE sets no content-type to trigger a 4xx status code.
However, it also sets no request body, which can also trigger a 4xx status code as per A5BF.

This can lead to false positives for this audit check if a server only responds with 4xx because of the missing request body, but not because of the missing content-type header.

This PR updates 9ABE to include a valid request body to ensure the 4xx status is triggered based on the missing content-type header. Additionally, I updated 9ABE from MAY to SHOULD to match the relevant part of the spec.

@enisdenjo enisdenjo merged commit 5587c03 into graphql:main Jun 23, 2025
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants