Skip to content

Commit

Permalink
Cope with HTTP/2 responses
Browse files Browse the repository at this point in the history
  • Loading branch information
bcosca committed Nov 7, 2018
1 parent 813377b commit 3e49c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/oauth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function request($uri,$method,$token=NULL) {
if ($response['error'])
user_error($response['error'],E_USER_ERROR);
if (isset($response['body'])) {
if (preg_grep('/^Content-Type:.*application\/json/',
if (preg_grep('/^Content-Type:.*application\/json/i',
$response['headers'])) {
$token=json_decode($response['body'],TRUE);
if (isset($token['error_description']))
Expand Down

0 comments on commit 3e49c4b

Please sign in to comment.