v.25.10Bug Fix (user-visible misbehavior in an official stable release)

Function checkHeaders is now properly validating

The function checkHeaders is now properly validating the provided headers and reject forbidden headers. Original author: Michael Anastasakis (@michael-anastasakis). #87172 (Raúl Marín).