def get_accept(environ):

    """get_accept(environ) -> accept header

    Return the Accept header from the request, or */* if it is not present.

    environ is the WSGI environment variable, from which the Accept header is read.
    """

    if 'HTTP_ACCEPT' in environ:
        return environ['HTTP_ACCEPT']
    return '*/*'