Skip to content

Commit 126491d

Browse files
committed
Allow requested test to be set via query string parameter
1 parent 90b1738 commit 126491d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/PHPCurlClass/server.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@
3333
}
3434
}
3535

36-
$test = isset($_SERVER['HTTP_X_DEBUG_TEST']) ? $_SERVER['HTTP_X_DEBUG_TEST'] : '';
36+
$test = '';
37+
if (isset($_SERVER['HTTP_X_DEBUG_TEST'])) {
38+
$test = $_SERVER['HTTP_X_DEBUG_TEST'];
39+
} else if (isset($_GET['test'])) {
40+
$test = $_GET['test'];
41+
}
3742
$key = isset($data_values['key']) ? $data_values['key'] : '';
3843

3944
if ($test === 'http_basic_auth') {

0 commit comments

Comments
 (0)