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

Support reporting redirections #55

Closed
g3rv4 opened this issue Nov 9, 2022 · 2 comments
Closed

Support reporting redirections #55

g3rv4 opened this issue Nov 9, 2022 · 2 comments

Comments

@g3rv4
Copy link
Contributor

g3rv4 commented Nov 9, 2022

Is your feature request related to a problem? Please describe.
I'd love to have the ability to report redirections as failures. If there's a 301 redirect in place, I'd love to flag it as broken so that I can fix and link to the appropriate place.

Describe the solution you'd like
An extra flag --report-redirections could work. Maybe it could even be --treat-status-codes-as-failure where we could pass status codes that are not successful from our PoV. I'd do --treat-status-codes-as-failure "301,307"

Describe alternatives you've considered
I looked at the different cli options, but I couldn't find something that helps here

Additional context
I really like to reduce points of failure :) I have 0 experience with rust, but if this sounds like something you'd like to support I'd be happy to attempt at a PR.

@g3rv4
Copy link
Contributor Author

g3rv4 commented Nov 9, 2022

oh, another option would be to just put the status code that was returned, and I can parse things on my end

@g3rv4
Copy link
Contributor Author

g3rv4 commented Nov 16, 2022

Addressed in #58

@g3rv4 g3rv4 closed this as completed Nov 16, 2022
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

No branches or pull requests

1 participant