-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using '=' for padding does not work for URLs #11
Comments
The rfc says
Just thinking out loud here. |
Yes, currently I need to run the base64 result through URL escaping to make that happen. But since the code already has special version of b64 for URLs (to avoid escaping), this shoud be part of that feature. |
Sounds reasonable, so if I pad with |
Or since you're not following official base64 encoding anyway, just choose a character that is compatible with URL like |
I've pushed to master, can you have a look and see what you think?
I've tried to follow the RFC as closely as possible. Where have I tripped up? |
LGTM |
v0.2.2 pushed to maven central. Thanks @ochrons for the input! |
When coding a query parameter to base64, the padding
=
s make it invalid. Some other URI compatible character should be used instead.The text was updated successfully, but these errors were encountered: