Pass request argument to get_flags