Skip to content

Commit

Permalink
app has to return 401 if Authorization is missing else ingress-nginx …
Browse files Browse the repository at this point in the history
…raises 500
  • Loading branch information
meffmadd committed Nov 19, 2024
1 parent 3b9abfc commit a6c69e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def validate_token():
else:
return jsonify({'message': 'Token is invalid'}), 401
else:
return jsonify({'message': 'No Bearer token provided'}), 400
return jsonify({'message': 'No Bearer token provided'}), 401

if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000, debug=True)

0 comments on commit a6c69e2

Please sign in to comment.