Closed WilliamVenner closed 3 years ago
Especially since chromium doesn't support the newlines
Done.
Cheers Rubat
On Tue, 13 Jul 2021, 11:06 am Rubat, @.***> wrote:
Closed #1889 https://github.com/Facepunch/garrysmod-requests/issues/1889 .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Facepunch/garrysmod-requests/issues/1889#event-5012721765, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRM27537ZGLPBPYOMFXRYLTXQFZHANCNFSM5AHIRK5Q .
util.Base64Encode is compliant with RFC 2045, meaning it inserts a newline every 76th character.
I am not really sure why they did that. All I know is that is it very inconvenient in some situations, is a waste of space (util.Base64Decode doesn't require this newline anyway) and is a waste of performance as removing the newlines in Lua comes with a cost.
It would be great if there was an argument to disable this behaviour.