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