Skip to content
Snippets Groups Projects
Commit 5dfff087 authored by Kurt Thiemann's avatar Kurt Thiemann Committed by Fabien Potencier
Browse files

[HttpClient] Test POST to GET redirects

parent 53fb15f1
No related branches found
Tags v3.4.4
No related merge requests found
......@@ -199,6 +199,16 @@ switch (parse_url($vars['REQUEST_URI'], \PHP_URL_PATH)) {
]);
exit;
case '/custom':
if (isset($_GET['status'])) {
http_response_code((int) $_GET['status']);
}
if (isset($_GET['headers']) && is_array($_GET['headers'])) {
foreach ($_GET['headers'] as $header) {
header($header);
}
}
}
header('Content-Type: application/json', true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment