diff options
| author | Teddy Wing | 2018-11-07 19:45:51 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-11-07 20:11:25 +0100 |
| commit | 497a6e3977c9a5fe1a25103b7133885f81d2b452 (patch) | |
| tree | a2a1dc7425e32d39a601477f3cb0304ccca5b48d /tests/data | |
| parent | ce37d818a79f2da21b5e14554af3b09b32b7e020 (diff) | |
| download | rust-plist-data-without-base64-mime.tar.bz2 | |
EventReader,PlistEventWriter: Change use `base64::STANDARD` for `Data`data-without-base64-mime
Use `base64::STANDARD` instead of `base64::MIME` to encode `Plist::Data`
types.
Using `base64::MIME` formats the base64 string with:
LineWrap::Wrap(76, LineEnding::CRLF)
(https://docs.rs/base64/0.9.3/base64/constant.MIME.html)
In an XML plist using `\n` line endings, the base64 string gets broken
into `\r\n`, mixing line endings.
The `STANDARD` configuration doesn't wrap lines at all, bypassing the
whole problem.
Diffstat (limited to 'tests/data')
0 files changed, 0 insertions, 0 deletions
