mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Cmake URL tests: Interpret 'Error 404' in received data as error.
This commit is contained in:
parent
a69d649626
commit
4b49a59e71
@ -70,9 +70,14 @@ sub check_http_url($$$$)
|
||||
my $buf;
|
||||
my $n = $s->read_entity_body($buf, 1024);
|
||||
if (! defined($n)) {
|
||||
print " Read from \"$protocol://$host$getp\" failed";
|
||||
print " Read from \"$protocol://$host$getp\" ";
|
||||
return 3;
|
||||
}
|
||||
if ($buf =~ /\<title\>Error 404\<\/title\>/) {
|
||||
print " Page reports 'Error 404' from \"$protocol://$host$getp\" ";
|
||||
return 3;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
# Returns ($err, $isdir)
|
||||
|
Loading…
Reference in New Issue
Block a user