update content-length when chunked transfer-encoding