def build_content_disposition(filename):
  """Builds a content-disposition header.

  Args:
    filename: The filename for the content disposition attachment.

  Returns:
    A content-disposition header, or empty string if no filename provided.
  """
  if not filename:
    return ''
  return 'attachment; filename=%s' % filename