def get_headers(environ):
    """
    Returns headers from the environ
    """
    headers = {}
    for name in environ:
        if name[0:5] == "HTTP_":
            headers[name[5:]] = environ[name]
    return headers