You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error is thrown when trying to use the Halite.basic_auth function.
Header content contains invalid character '\n' (ArgumentError)
from /usr/local/Cellar/crystal/0.29.0/src/http/headers.cr:303:7 in 'check_invalid_header_content'
from /usr/local/Cellar/crystal/0.29.0/src/http/headers.cr:108:5 in 'add'
from lib/halite/src/halite/ext/http_headers_encode.cr:27:11 in 'encode'
from lib/halite/src/halite/options.cr:387:9 in 'parse_headers'
from lib/halite/src/halite/options.cr:130:23 in 'with_headers'
from lib/halite/src/halite/chainable.cr:163:7 in 'headers'
from lib/halite/src/halite/chainable.cr:130:7 in 'auth'
from lib/halite/src/halite/chainable.cr:120:7 in 'basic_auth'
This is due to not using Base64.strict_encode which does not place a newline at the end of the output.
The text was updated successfully, but these errors were encountered:
The following error is thrown when trying to use the
Halite.basic_auth
function.This is due to not using
Base64.strict_encode
which does not place a newline at the end of the output.The text was updated successfully, but these errors were encountered: