mirror of https://github.com/mikaku/Monitorix.git
returns an original line #249
This commit is contained in:
parent
6ee6eabb03
commit
ad2b7eee37
|
@ -861,7 +861,7 @@ while(1) {
|
|||
if(!$pid) {
|
||||
my $url = "http://localhost:" . $config{httpd_builtin}->{port} . $config{base_url};
|
||||
my $ua = LWP::UserAgent->new(timeout => 30);
|
||||
my $response = $ua->get($url);
|
||||
my $response = $ua->request(HTTP::Request->new('GET', $url));
|
||||
if(!$response->is_success) {
|
||||
if($response->status_line ne "401 Access Denied") {
|
||||
logger("WARNING: HTTP built-in server not responding at '$url'.");
|
||||
|
|
Loading…
Reference in New Issue