def get_header(request: dict, name: str):
    """Get a header from the request payload sent by API Gateway proxy integration to Lambda.
    Does not deal with multi-value headers, but that's fine for this app"""
    for key in request['headers']:
        if key.lower() == name.lower():
            return request['headers'][key]
    return None