marshallpierce / rust-base64

base64, in rust
Apache License 2.0
615 stars 115 forks source link

Unable to decode base64 encoded content from github api #201

Closed FreePhoenix888 closed 1 year ago

FreePhoenix888 commented 1 year ago

Github api response with content field: https://api.github.com/repos/linksplatform/Disposables/contents/csharp/Platform.Disposables/Platform.Disposables.csproj?ref=main

Error: InvalidByte

marshallpierce commented 1 year ago

The content field ends with "\n", which is not a valid base64 token. See https://github.com/marshallpierce/rust-base64#i-need-to-decode-base64-with-whitespacenull-bytesother-random-things-interspersed-in-it-what-should-i-do

FreePhoenix888 commented 1 year ago

The content field ends with "\n", which is not a valid base64 token. See https://github.com/marshallpierce/rust-base64#i-need-to-decode-base64-with-whitespacenull-bytesother-random-things-interspersed-in-it-what-should-i-do

Thank you!