Closed Zebradil closed 2 months ago
Fixes #389.
This PR addresses two issues:
If the authorization header value contains a trailing newline, the http client returns error without a response struct (nil).
nil
It is easy to miss a trailing newline when encoding a value into base64. To avoid inconvenience for users, let's trim it.
Fixes #389.
This PR addresses two issues:
If the authorization header value contains a trailing newline, the http client returns error without a response struct (
nil
).It is easy to miss a trailing newline when encoding a value into base64. To avoid inconvenience for users, let's trim it.