TS-2850: Fix logging of response header length