my ($self, $urls) = @_;
while (my $con = $self->accept) {
+ print STDERR "Accepted a new connection\n" if $log;
while (my $req = $con->get_request) {
my $url_path = $req->url->path;
if ($url_path =~ m{/$}) {
} else {
print STDERR "Requested wrong URL: ", $url_path, "\n" if $log;
$con->send_error($HTTP::Status::RC_FORBIDDEN);
- }
+ last;
+ }
}
+ print STDERR "Closing connection\n" if $log;
$con->close;
undef($con);
}