Skip to content
Snippets Groups Projects
Commit 82bc8ee4 authored by Fabien Potencier's avatar Fabien Potencier
Browse files

Merge branch '6.4' into 7.1

* 6.4:
  [BeanstalkMessenger] Round delay to an integer to avoid deprecation warning
  [PropertyInfo] Fix interface handling in `PhpStanTypeHelper`
  [HttpClient] Test POST to GET redirects
  [HttpKernel] Denormalize request data using the csv format when using "#[MapQueryString]" or "#[MapRequestPayload]" (except for content data)
  fix: preserve and nowrap in profiler code highlighting
parents a1a717e0 5dfff087
No related branches found
No related tags found
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.
Please register or to comment