Fixed two probems in access token check 
Fixed two probems in access token check 

1) The method returned the wrong result in case when the access token itself contained the string "Bearer".

2) When using cURL, the request is sometimes send twice (in my case when the first request returned a 404 error), and the Authorization header of the second request is doubled, so that you get a "Authorization: Bearer XXX, Bearer XXX". This case is checked now. (BTW: Tested with the current PHP version 5.4.15 on Windows.)
juliangut/oauth2-server,ionux/oauth2-server,jahanzaibbahadur/oauth2-server,fabik/oauth2-server,0x0all/oauth2-server,Symplicity/oauth2-server,starJammer/oauth2-server,cesutherland/oauth2-server,josegonzalez/oauth2-server,steveathon/oauth2-server,lookyman/oauth2-server,mromarreyes/oauth2-server,mijndomein/deprecated-league-oauth2-server,michaelhogg/oauth2-server,marcteyssier/oauth2-server-1,thephpleague/oauth2-server,marcaube/oauth2-server,gencer/oauth2-server,jorycn/oauth2-server,nordsoftware/oauth2-server,neconest/oauth2-server,benito103e/oauth2-server