mirror of
https://github.com/lexmount/moli.git
synced 2026-10-06 16:01:00 +00:00
Keep network XML response bytes intact through the existing raw-body renderer path. Decode both network and external XML bodies with the shared response decoder, then install the selected encoding before document bootstrap. Remove the obsolete ready-body capture variant used by the old XML path. Cover matching main-document and iframe text, namespaces, and characterSet for Atom, RSS, and text/*+xml responses with Windows-1252 headers, XML declarations, and UTF-16LE/BE BOMs. Exercise the external input as single-byte chunks and verify that BOMs override a conflicting transport charset. Validation: - Before the fix, the network regression returned caf� / UTF-8 instead of café / windows-1252. - cargo fmt --all - cargo clippy --workspace --all-targets --all-features -- -D warnings - Six focused XML tests passed. - NEXTEST_TEST_THREADS=8 cargo nextest run --no-fail-fast: 18,954 passed, 16 skipped.