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