Skip to content

fix(audits): avoid false positives in 9ABE #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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.

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.

1 participant