(value: &str)
| 676 | }) |
| 677 | } |
| 678 | |
| 679 | fn normalize_header_value_inplace(ctx: &Ctx<'_>, text: &mut String) -> Result<()> { |
| 680 | let mut input = std::mem::take(text).into_bytes(); |
| 681 | let mut read_idx = 0; |
| 682 | let mut write_idx = 0; |
| 683 | |
| 684 | // Skip leading SP or HTAB |
| 685 | while read_idx < input.len() && (input[read_idx] == b' ' || input[read_idx] == b'\t') { |
| 686 | read_idx += 1; |
| 687 | } |
| 688 | |
| 689 | // Store the last whitespace byte if any (space or tab) |
no outgoing calls
no test coverage detected