This PR fixes a regression introduced in TomcatHeadersAdapter.clear() in conjunction with #33916.

Comment From: sbrannen

This has been merged into main in c8009dc67d70ef789b2e80c9ee72ce3db4719e36.

Thanks!

p.s. I revised the contribution in 8a8df90a46da37e7f397bccd18413edd913fdfeb in order to restore the original behavior.