Skip to content

Commit

Permalink
should get the cookie from request not response (typester++)
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed May 19, 2009
1 parent e59a318 commit 5a978bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Net/Twitter/OAuth.pm
Expand Up @@ -143,7 +143,7 @@ secret to upgrade the request token to access token.
sub twitter_auth_callback : Local {
my($self, $c) = @_;
my $cookie = $c->response->cookies->{oauth}->value;
my $cookie = $c->request->cookies->{oauth}->value;
my $client = Net::Twitter::OAuth->new(%param);
$client->oauth->request_token($cookie->{token});
Expand Down

0 comments on commit 5a978bb

Please sign in to comment.