adds content length to response if transfer-encoding is missing