Fix #555: Remove temporary file when download fails

This commit is contained in:
Zach Borboa
2018-11-08 08:27:47 -08:00
parent d4e5e4aae6
commit 5c6fd4cdf3
3 changed files with 27 additions and 1 deletions
+4
View File
@@ -346,6 +346,10 @@ if ($test === 'http_basic_auth') {
echo '202 Accepted';
echo ' (remaining failures: ' . $_SESSION['failures_remaining'] . ')';
exit;
} elseif ($test === '404') {
header('HTTP/1.1 404 Not Found');
echo '404 Not Found';
exit;
}
header('Content-Type: text/plain');