[BUGFIX] disable Content-Length if output compression is on

Resolves: #31815