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

Wrong header for oAuth request #2

Open
GRBurst opened this issue Jul 25, 2018 · 0 comments · May be fixed by #3
Open

Wrong header for oAuth request #2

GRBurst opened this issue Jul 25, 2018 · 0 comments · May be fixed by #3

Comments

@GRBurst
Copy link

GRBurst commented Jul 25, 2018

Hey there and thanks for this library.

It seems that there is a problem with the accept headers that are set in a request and the expected content type.
The library expects a token in json and should therefore set the Accept: application/json header rather than RawHeader("Accept", "*/*").
Github for example will send a request containing only access_token=e72e16c7e42f292c6912e7710c838347ae178b4a&token_type=bearer, resulting in an unmarshalling error: (akka.http.scaladsl.unmarshalling.Unmarshaller$UnsupportedContentTypeException: Unsupported Content-Type, supported: application/json

Or am I missing something?

Kind regards

@GRBurst GRBurst linked a pull request Jul 25, 2018 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant