[HttpFoundation] fixed regression in the way the request format is handled for duplicated requests (closes #8917)

This commit is contained in:
Fabien Potencier 2013-09-08 12:52:08 +02:00
parent d4236ca8ac
commit 719b2bf67f

View File

@ -407,7 +407,8 @@ class Request
$dup->format = null;
if (!$dup->get('_format')) {
$dup->setRequestFormat($this->getRequestFormat());
// we set the request format to null if the current request is not known
$dup->setRequestFormat($this->getRequestFormat(null));
}
return $dup;