(head: &str)
| 176 | } |
| 177 | |
| 178 | fn content_length(head: &str) -> Option<usize> { |
| 179 | for line in head.lines() { |
| 180 | let lower = line.to_ascii_lowercase(); |
| 181 | if let Some(v) = lower.strip_prefix("content-length:") { |
| 182 | return v.trim().parse().ok(); |
| 183 | } |
| 184 | } |
| 185 | None |
| 186 | } |
| 187 | |
| 188 | #[test] |
| 189 | fn fresh_clone_ingests_provenance_and_attestations() { |
no test coverage detected