Skip to content
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

Add authorization header correctly #10

Closed
biplap-sarkar opened this issue Apr 27, 2015 · 1 comment
Closed

Add authorization header correctly #10

biplap-sarkar opened this issue Apr 27, 2015 · 1 comment
Assignees

Comments

@biplap-sarkar
Copy link
Contributor

Currently authorization header is added using
call.add_field('Authorization: Bearer', access_token);

This gives error sometimes with message suggesting authorization header should be of type Bearer when the header is not added correctly to the HTTP request

Using header name as 'Authorization' and passing the value 'Bearer <access_token>' works for me as following:-
call.add_field('Authorization', "Bearer #{access_token}");

@biplap-sarkar
Copy link
Contributor Author

This was done after the following merge was done:-
67d08bb

@biplap-sarkar biplap-sarkar self-assigned this Apr 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant