luis901101 / oauth_webauth

BSD 3-Clause "New" or "Revised" License
15 stars 17 forks source link

Passing custom headers in request #2

Closed jijilpk closed 2 years ago

jijilpk commented 2 years ago

I have one question on how to pass headers like Accept: application/json with this package For Eg for Github apps by default it send response in url encoded format. We need to pass headers to get in other format like JSON. So I am getting format exception with this package. Could you please help me.

Ref Link: https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#web-application-flow

luis901101 commented 2 years ago

Hi, thanks for reporting this. Not currently available to set request headers. I’ll add it in the next release.

luis901101 commented 2 years ago

Check v2.2.0+9