Attempts to decode bytes fields in response JSON using both standard and url_safe encodings. The expected encoding's desierializer is tried first. On error the second is attempted. If the second fails, the original error from the first is returned.
Sounds good. I've added two cases using +, / and -, _ respectively to ensure decoder doesn't error out. Changed failure case to a character outside either accepted base64 character set.
Attempts to decode
bytes
fields in response JSON using bothstandard
andurl_safe
encodings. The expected encoding's desierializer is tried first. On error the second is attempted. If the second fails, the original error from the first is returned.Fixes https://github.com/Byron/google-apis-rs/issues/502
Likely fixes other bugs too but I haven't tested