From e293555081160dbf8c1c49ce38771a1e8c45e8d8 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Tue, 28 May 2013 10:02:25 +0200 Subject: [PATCH] small change --- lib/HTTPServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/HTTPServer.pm b/lib/HTTPServer.pm index aa1c0b5..5e27b95 100644 --- a/lib/HTTPServer.pm +++ b/lib/HTTPServer.pm @@ -37,7 +37,7 @@ sub logger { print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] \"$ENV{REQUEST_METHOD} $url - $ENV{HTTP_USER_AGENT}\"\n"; } elsif($type eq "NOTEXIST") { print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] File does not exist: $url\n"; - } elsif($type eq "NOAUTH") { + } elsif($type eq "AUTHERR") { print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] Authentication error: $url\n"; } elsif($type eq "NOTALLOWED") { print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] Access not allowed: $url\n"; @@ -221,7 +221,7 @@ sub handle_request { print "browser doesn't understand how to supply\r\n"; print "the credentials required.

\r\n"; print "\r\n"; - logger($url, "NOAUTH"); + logger($url, "AUTHERR"); exit(0); } }