Skip to content

Commit

Permalink
fixed basic auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
walf443 committed Apr 17, 2011
1 parent 768a78f commit a311262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Carol/IRCGateway/Wassr.pm
Expand Up @@ -118,7 +118,7 @@ sub request_wassr {
$args{headers}->{'user-agent'} ||= "Carol";

if ( $authorize ) {
$args{headers}->{'Authorization'} = MIME::Base64::encode_base64(join ":", ($self->account->{login_id}, $self->account->{password}));
$args{headers}->{'Authorization'} = "Basic " . MIME::Base64::encode_base64(join ":", ($self->account->{login_id}, $self->account->{password}));
}

AnyEvent::HTTP::http_request($method, $url, %args, sub {
Expand Down

0 comments on commit a311262

Please sign in to comment.