Skip to content
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

Option to check non-OK document bodies as well #7

Open
mthuurne opened this issue Feb 5, 2019 · 0 comments
Open

Option to check non-OK document bodies as well #7

mthuurne opened this issue Feb 5, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@mthuurne
Copy link
Member

mthuurne commented Feb 5, 2019

Currently APE will only check a document body if the HTTP status code was 200 (OK). For other status codes, it will log a message like "Skipping content check because of HTTP status 404".

The reason for this behavior is that a lot of web servers have error and redirection notices that use archaic HTML. Running those through the checker would produce a lot of false positives.

However, if a web site or app uses custom error and redirection messages, it would be useful to check those. To make that possible, there would have to be a configuration option (off by default) to check the body for non-200 responses too. I don't know yet if it should be configurable per status code or just one flag for all non-200 codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant