[HttpFoundation] fixed regression in the way the request format is handled for duplicated requests (closes #8917)
This commit is contained in:
parent
d4236ca8ac
commit
719b2bf67f
@ -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;
|
||||
|
Reference in New Issue
Block a user