mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-10 14:05:32 +00:00
Fix #555: Remove temporary file when download fails
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user