mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update base64 to 0.10.1
This commit is contained in:
parent
b1669b853b
commit
b9371c6856
6 changed files with 14 additions and 17 deletions
|
@ -50,7 +50,7 @@ pub fn decode(url: &ServoUrl) -> Result<DecodeData, DecodeError> {
|
|||
.into_iter()
|
||||
.filter(|&b| b != b' ')
|
||||
.collect::<Vec<u8>>();
|
||||
match base64::decode(&bytes) {
|
||||
match base64::decode_config(&bytes, base64::STANDARD.decode_allow_trailing_bits(true)) {
|
||||
Err(..) => return Err(DecodeError::NonBase64DataUri),
|
||||
Ok(data) => bytes = data,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue