def __str__(self):
    content_type = '%s/%s' % (self.__main_type or '*', self.__sub_type or '*')
    values = self.values

    if values:
      value_strings = ['%s=%s' % (i, v) for i, v in values.iteritems()]
      return '%s; %s' % (content_type, '; '.join(value_strings))
    else:
      return content_type
Rebuilds Accept header.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/protorpc/protorpc/util.py/AcceptItem.__str__