alpacaaa / xpathr

be very very *very* careful
http://xpathr.com
11 stars 3 forks source link

Fix GitHub OAuth issue by adding a user agent to the file_get_contents options #5

Closed bauhouse closed 10 years ago

bauhouse commented 10 years ago

LIne 250 of lib/class.xpathr.php was throwing the following error on authentication:

file_get_contents(https://api.github.com/user?access_token=sometokenhiddenhere): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden

The changes described in a similar issue for the codeigniter-oath2 repository were adapted to solve the issue.

alpacaaa commented 10 years ago

Great, thanks Stephen!

bauhouse commented 10 years ago

You're welcome, Marco!