We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc7bed0 commit f8a74a4Copy full SHA for f8a74a4
Test/Fixtures/web/index.php
@@ -31,7 +31,7 @@
31
32
$json = json_encode($vars, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE);
33
34
-switch ($vars['REQUEST_URI']) {
+switch (parse_url($vars['REQUEST_URI'], \PHP_URL_PATH)) {
35
default:
36
exit;
37
@@ -94,13 +94,8 @@
94
95
case '/302':
96
if (!isset($vars['HTTP_AUTHORIZATION'])) {
97
- header('Location: http://localhost:8057/', true, 302);
98
- }
99
- break;
100
-
101
- case '/302-no-scheme':
102
- if (!isset($vars['HTTP_AUTHORIZATION'])) {
103
- header('Location: localhost:8067', true, 302);
+ $location = $_GET['location'] ?? 'http://localhost:8057/';
+ header('Location: '.$location, true, 302);
104
}
105
break;
106
0 commit comments