@app.route('/user-agent')
def view_user_agent():
 headers = get_headers()
 return jsonify({'user-agent': headers['user-agent']})

@ app . route ( '/user-agent' ) def view_user_agent ( ) : headers = get_headers ( ) return jsonify ( { 'user-agent' : headers [ 'user-agent' ] } )
returns user-agent .