mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-08 21:15:25 +00:00
Fix #47: Add http header redirect parsing test
This commit is contained in:
@@ -139,6 +139,15 @@ else if ($test === 'error_message') {
|
||||
}
|
||||
exit;
|
||||
}
|
||||
else if ($test === 'redirect') {
|
||||
if (!isset($_GET['redirect'])) {
|
||||
header('Location: ?redirect');
|
||||
exit;
|
||||
}
|
||||
|
||||
echo 'OK';
|
||||
exit;
|
||||
}
|
||||
|
||||
header('Content-Type: text/plain');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user