Commit 6c6d8ed
committed
bug #62246 [HttpFoundation] Allow Request::setFormat() to override predefined formats (longwave)
This PR was merged into the 6.4 branch.
Discussion
----------
[HttpFoundation] Allow Request::setFormat() to override predefined formats
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix #62226
| License | MIT
Since #61267 some additional MIME formats are predefined; in order to override the predefined formats you must explictly deregister them. This PR changes the order so formats added later take precedence.
Commits
-------
2402d16 [HttpFoundation] Allow Request::setFormat() to override predefined formatsFile tree
2 files changed
+22
-5
lines changed- src/Symfony/Component/HttpFoundation
- Tests/Test/Constraint
2 files changed
+22
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
1301 | 1304 | | |
1302 | | - | |
1303 | | - | |
| 1305 | + | |
| 1306 | + | |
1304 | 1307 | | |
1305 | | - | |
1306 | | - | |
| 1308 | + | |
| 1309 | + | |
1307 | 1310 | | |
1308 | 1311 | | |
1309 | 1312 | | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
1310 | 1317 | | |
1311 | 1318 | | |
1312 | 1319 | | |
| |||
1323 | 1330 | | |
1324 | 1331 | | |
1325 | 1332 | | |
1326 | | - | |
| 1333 | + | |
1327 | 1334 | | |
1328 | 1335 | | |
1329 | 1336 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
61 | 71 | | |
0 commit comments