Skip to content

Instantly share code, notes, and snippets.

@mattn
Created March 5, 2009 02:07
Show Gist options
  • Select an option

  • Save mattn/74139 to your computer and use it in GitHub Desktop.

Select an option

Save mattn/74139 to your computer and use it in GitHub Desktop.
Index: lib/Plagger/Plugin/UserAgent/AuthenRequest.pm
===================================================================
--- lib/Plagger/Plugin/UserAgent/AuthenRequest.pm (revision 2063)
+++ lib/Plagger/Plugin/UserAgent/AuthenRequest.pm (working copy)
@@ -19,6 +19,7 @@
my $creds = $self->conf->{credentials} || [ $self->conf ];
for my $auth (@$creds) {
+ $auth->{realm} ||= '';
$context->log(info => "Adding credential to $auth->{realm} at $auth->{host}");
$args->{ua}->credentials($auth->{host}, $auth->{realm}, $auth->{username}, $auth->{password});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment