This commit fixes a regression introduced in TomcatHeadersAdapter in conjunction with gh-33916. Closes gh-34092