def get_source_url(event):
    """
    Rebuilds the source url from the lambda event
    """
    host = event['headers']['Host']
    scheme = event['headers']['X-Forwarded-Proto']
    path = event['path']
    return scheme + "://" + host + path