mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 12:14:36 +00:00
Allow requested test to be set via query string parameter
This commit is contained in:
@@ -33,7 +33,12 @@ if ($request_method === 'POST') {
|
||||
}
|
||||
}
|
||||
|
||||
$test = isset($_SERVER['HTTP_X_DEBUG_TEST']) ? $_SERVER['HTTP_X_DEBUG_TEST'] : '';
|
||||
$test = '';
|
||||
if (isset($_SERVER['HTTP_X_DEBUG_TEST'])) {
|
||||
$test = $_SERVER['HTTP_X_DEBUG_TEST'];
|
||||
} else if (isset($_GET['test'])) {
|
||||
$test = $_GET['test'];
|
||||
}
|
||||
$key = isset($data_values['key']) ? $data_values['key'] : '';
|
||||
|
||||
if ($test === 'http_basic_auth') {
|
||||
|
||||
Reference in New Issue
Block a user