merged branch fabpot/format-fix (PR #8961)
This PR was merged into the 2.2 branch.
Discussion
----------
fixed regression in the way the request format is handled
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #8917
| License | MIT
| Doc PR | n/a
Commits
-------
719b2bf
[HttpFoundation] fixed regression in the way the request format is handled for duplicated requests (closes #8917)
This commit is contained in:
commit
11c3b16a4d
@ -407,7 +407,8 @@ class Request
|
|||||||
$dup->format = null;
|
$dup->format = null;
|
||||||
|
|
||||||
if (!$dup->get('_format')) {
|
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;
|
return $dup;
|
||||||
|
Reference in New Issue
Block a user