Skip to content

Commit

Permalink
Resolved collision of method names
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelm committed Jan 27, 2010
1 parent 9466762 commit ed5f4d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Catalyst/Authentication/Credential/RemoteHTTP.pm
Expand Up @@ -71,7 +71,7 @@ sub authenticate {
$authinfo->{ $config->{username_field} },
$config->{user_suffix} );
my $password = $authinfo->{ $config->{'password_field'} };
$ua->credentials( $auth_user, $password );
$ua->set_credentials( $auth_user, $password );

# do the request
my $res = $ua->head( $config->{url} );
Expand Down
Expand Up @@ -3,7 +3,7 @@ use strict;
use warnings;
use base qw/LWP::UserAgent/;

sub credentials {
sub set_credentials {
my ($self, $user, $pass) = @_;
@{ $self->{credentials} } = ($user, $pass);
}
Expand All @@ -23,7 +23,7 @@ A thin wrapper for L<LWP::UserAgent> to make basic auth simpler.
=head1 METHODS
=head2 credentials
=head2 set_credentials
now takes just a username and password
Expand Down

0 comments on commit ed5f4d9

Please sign in to comment.