Skip to content

Fix basic auth encoding for long credentials - #16

Merged
matejart merged 1 commit into
xlab-steampunk:masterfrom
MartinSpiessl:fix-base64encode
Jul 17, 2026
Merged

matejart merged 1 commit into
xlab-steampunk:masterfrom
MartinSpiessl:fix-base64encode

Conversation

@MartinSpiessl

Copy link
Copy Markdown
Contributor

Base64.encode64 will input \n characters if the input is too long, so just stripping the result is not enough. Base64.strict_encode64 does not insert these line breaks, and should therefore be used here.

Base64.encode64 will input \n characters if the input is too long,
so just stripping the result is not enough. Base64.strict_encode64
does not insert these line breaks, and should therefore be used here.
@matejart

Copy link
Copy Markdown
Member

Thank you, @MartinSpiessl, for spotting and fixing this issue! 👍

@matejart
matejart merged commit e725d09 into xlab-steampunk:master Jul 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants