From: Steinar H. Gunderson Date: Tue, 30 Jun 2009 11:38:58 +0000 (+0200) Subject: Remove some unneeded parameters from check_401. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=a87e90cdd5ed56bc6bfa460a9b56f587a65bebd3;hp=54772c93b534979ab28f88a42eca429edf15d483 Remove some unneeded parameters from check_401. --- diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 4a552c4..60e9469 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -319,7 +319,7 @@ sub check_access { my $auth = $r->headers_in->{'authorization'}; if (!defined($auth)) { - output_401($r, 0); + output_401($r); return undef; } $r->log->warn("Auth: $auth"); @@ -329,7 +329,7 @@ sub check_access { if ($auth =~ /^Digest (.*)$/) { return check_digest_auth($r, $1); } - output_401($r, 0); + output_401($r); return undef; }