Change lack of content-type to be a permanent failure
Some checks are pending
ci/woodpecker/push/manual Pipeline is pending
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/push/release Pipeline was successful

In practice, I see this happening on URLs with unknown filetypes
This commit is contained in:
Olivier 'reivilibre' 2022-06-05 10:16:17 +01:00
parent e88bf6cb44
commit 75afb8b559

View File

@ -331,9 +331,8 @@ impl Raker {
content_type.split(";").next().unwrap().trim().to_owned() content_type.split(";").next().unwrap().trim().to_owned()
} else { } else {
increment_counter!("qprake_rake_specific_fail_count", "reason" => "NoCT"); increment_counter!("qprake_rake_specific_fail_count", "reason" => "NoCT");
return Ok(RakeOutcome::TemporaryFailure(TemporaryFailure { return Ok(RakeOutcome::PermanentFailure(PermanentFailure {
reason: TemporaryFailureReason::MissingInformation("content-type".to_owned()), reason: PermanentFailureReason::UnknownContentType("not specified".to_owned()),
backoff_sec: 86400 * 7,
})); }));
}; };