becheran/mlc

Support reporting redirections

Closed this issue · 2 comments

g3rv4 commented

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 commented

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

g3rv4 commented

Addressed in #58