Skip to content

Commit

Permalink
Merge pull request #9 from fayland/master
Browse files Browse the repository at this point in the history
as dicussed
  • Loading branch information
c9s committed Dec 4, 2011
2 parents daaa40a + e8ffb8d commit ab4eed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Plack/Middleware/OAuth/Handler/AccessTokenV2.pm
Expand Up @@ -44,7 +44,7 @@ sub get_access_token {
my $content_type = $ua_response->header('Content-Type');
my $atkn;

if( $content_type =~ m{json} || $content_type =~ m{javascript} ) {
if( $content_type =~ m{json} || $content_type =~ m{javascript} || $response_content =~ m{^\{.*?\}}s ) {

my $params = JSON::Any->new->decode( $response_content );
$atkn = Plack::Middleware::OAuth::AccessToken->new(
Expand Down

0 comments on commit ab4eed6

Please sign in to comment.