mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 20:55:39 +00:00
Source-Repo: https://github.com/servo/servo Source-Revision: 8521f7c7526e0e5bcda51211743c756718ff91e0
This commit is contained in:
parent
da2cce1fcb
commit
b38c151c70
@ -64,6 +64,9 @@ fn load(load_data: LoadData, start_chan: Sender<LoadResponse>) {
|
||||
let bytes = percent_decode(parts.get(1).as_bytes());
|
||||
|
||||
if is_base64 {
|
||||
// FIXME(#2909): It’s unclear what to do with non-alphabet characters,
|
||||
// but Acid 3 apparently depends on spaces being ignored.
|
||||
let bytes = bytes.move_iter().filter(|&b| b != ' ' as u8).collect::<Vec<u8>>();
|
||||
// FIXME(#2877): use bytes.as_slice().from_base64() when we upgrade to a Rust version
|
||||
// that includes https://github.com/rust-lang/rust/pull/15810
|
||||
let fake_utf8 = unsafe { str::raw::from_utf8(bytes.as_slice()) };
|
||||
|
Loading…
Reference in New Issue
Block a user