mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
201 is a valid OK resoonse code
This commit is contained in:
@@ -3090,7 +3090,7 @@ local ($line, %header, @headers, $s);
|
||||
$timeout = 60 if (!defined($timeout));
|
||||
alarm($timeout) if ($timeout);
|
||||
($line = &read_http_connection($h)) =~ tr/\r\n//d;
|
||||
if ($line !~ /^HTTP\/1\..\s+(200|30[0-9]|400)(\s+|$)/) {
|
||||
if ($line !~ /^HTTP\/1\..\s+(20[0-9]|30[0-9]|400)(\s+|$)/) {
|
||||
$line ||= "Failed to read HTTP response line";
|
||||
alarm(0) if ($timeout);
|
||||
&close_http_connection($h);
|
||||
|
||||
Reference in New Issue
Block a user