forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Base64] making padding optional (JuliaLang#44503)
The pad character `=` is required in base64 encoding, but not in decoding. Padding characters are not needed to correctly decode: https://en.wikipedia.org/wiki/Base64#Output_padding This PR makes it possible to decode base64-encoded strings/streams without padding, matching the behavior in V8 in data urls. (The [official spec](https://datatracker.ietf.org/doc/html/rfc4648#section-4) for Base64 states that padding is required for base64-encoding, but it does not specify a requirement for decoding.)
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters