Skip to content

Fix basic auth encoding for long credentials#16

Open
MartinSpiessl wants to merge 1 commit into
xlab-steampunk:masterfrom
MartinSpiessl:fix-base64encode
Open

Fix basic auth encoding for long credentials#16
MartinSpiessl wants to merge 1 commit into
xlab-steampunk:masterfrom
MartinSpiessl:fix-base64encode

Conversation

@MartinSpiessl

Copy link
Copy Markdown

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.
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.

1 participant