Reverted a part of f5e7f2481916d32d5e51b4f01a2deced78b81549
merged branch pborreli/patch-9 (PR #7943)

This PR was merged into the master branch.

Discussion
----------

[HttpFoundation] Reverted a part of #7931

refs: #7931

Commits
-------

09c2114 Reverted a part of f5e7f2481916d32d5e51b4f01a2deced78b81549