I've made my peace with not setting Transfer-Encoding in servlets.