def get_content_type(self):
        missing = object()
        value = self.get('content-type', missing)
        if value is missing:
            # This should have no parameters
            return self.get_default_type()
        ctype = _splitparam(value)[0].lower()
        # RFC 2045, section 5.2 says if its invalid, use text/plain
        if ctype.count('/') != 1:
            return 'text/plain'
        return ctype
Same as `django.core.urlresolvers.reverse`, but optionally takes a request
dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/email/message.py/Message.get_content_type--crossover with--dataset/ETHPy150Open tomchristie/django-rest-framework/rest_framework/reverse.py/_reverse