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

Return response headers with fetch() #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tlshaheen
Copy link

This is different than issue #30 in that the http_parse_headers function here is a better implementation of parsing the headers - it accounts for a number of things that could be different about the headers.

Issue #30 also doesn't appear to have been merged, unless I am looking at it wrong.

If params are passed as JSON (instead of array), check and see if the access token is part of the JSON.

If it is, do not throw the "You need to give parameters as array if you want to give the token within the URI" exception.
This is different than issue adoy#30 in that the http_parse_headers function here is a better implementation of parsing the headers - it accounts for a number of things that could be different about the headers.

Issue adoy#30 also doesn't appear to have been merged, unless I am looking at it wrong.
@DanMan
Copy link

DanMan commented May 12, 2022

Good idea, unreliable solution. It should probably use CURLOPT_HEADERFUNCTION somehow. See https://stackoverflow.com/a/25118032/428241

And yeah, that code was never merged unfortunately.

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 this pull request may close these issues.

2 participants