def __accept_post_options(self, inbox, **kwargs):
    r = requests.options(inbox, **kwargs)
    if ((r.status_code == requests.codes.ok) and ('accept-post' in r.headers)):
        if (self.JSON_LD in r.headers['accept-post']):
            return self.JSON_LD
        for content_type in r.headers['accept-post'].split(','):
            return self.content_type_to_mime_type(content_type)
def __accept_post_options(self, inbox, **kwargs):
    r = requests.options(inbox, **kwargs)
    if ((r.status_code == requests.codes.ok) and ('accept-post' in r.headers)):
        if (self.JSON_LD in r.headers['accept-post']):
            return self.JSON_LD
        for content_type in r.headers['accept-post'].split(','):
            return self.content_type_to_mime_type(content_type)