def getHeaders(environ):
    """ Get all Headers and return them back as dictionary """
    headers = {}
    for key in environ.keys():
        if key.startswith('HTTP_'):
            headers[key[5:]] = environ.get(key)
    return headers