PHP-OAuth2
PHP-OAuth2 copied to clipboard
Return response headers with fetch()
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.
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.