I added authentication to my application with LHC::Auth.
My username is 15 characters long, the password has 32 characters. This results in an invalid authorization header, as Ruby's Base64#encode64 adds newlines after every 60 encoded characters (see Ruby doc).
I added authentication to my application with LHC::Auth.
My username is 15 characters long, the password has 32 characters. This results in an invalid authorization header, as Ruby's Base64#encode64 adds newlines after every 60 encoded characters (see Ruby doc).
Using
Base64::strict_encode64
should fix this issue.