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
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
I've found a small problem with your module when the base64 PointHQ auth credentials are longer than 76 characters. The encoded output wraps at this point, which causes the request header to be invalid. You end up with something like this:
Note that the authorization header is wrapped over two lines. The second line is invalid HTTP, and you get a 500 back from the Point API. I've fixed the problem in my own code by stripping newlines from the encoded output so the authorization header uses a single line. This appears to be the approach taken by the Python requests library, and by curl.
I will send a pull request referencing this issue that includes my fix.
Thanks for the great module,
Richard
The text was updated successfully, but these errors were encountered:
Hi Mike,
I've found a small problem with your module when the base64 PointHQ auth credentials are longer than 76 characters. The encoded output wraps at this point, which causes the request header to be invalid. You end up with something like this:
Note that the authorization header is wrapped over two lines. The second line is invalid HTTP, and you get a 500 back from the Point API. I've fixed the problem in my own code by stripping newlines from the encoded output so the authorization header uses a single line. This appears to be the approach taken by the Python
requests
library, and by curl.I will send a pull request referencing this issue that includes my fix.
Thanks for the great module,
Richard
The text was updated successfully, but these errors were encountered: