Ankit74990 commited on
Commit
ee1e12f
·
verified ·
1 Parent(s): ef4a71a

Update honeypot_api.py

Browse files
Files changed (1) hide show
  1. honeypot_api.py +1 -1
honeypot_api.py CHANGED
@@ -181,7 +181,7 @@ def health_check():
181
  @app.route("/honeypot/message", methods=["POST"])
182
  def honeypot_message():
183
 
184
- if verify_api_key(request):
185
  return jsonify({"error":"Unauthorized"}), 401
186
 
187
  data = request.get_json()
 
181
  @app.route("/honeypot/message", methods=["POST"])
182
  def honeypot_message():
183
 
184
+ if not verify_api_key(request):
185
  return jsonify({"error":"Unauthorized"}), 401
186
 
187
  data = request.get_json()