HopeMan commited on
Commit
9300ab0
1 Parent(s): 5c6a238

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -429,7 +429,7 @@ def before_request():
429
  if request.method != 'OPTIONS' and is_authorize_ignored(request) == False and getattr(request.authorization, 'token', '') != api_key:
430
  print(f"WARNING: Unauthorized API key access from {request.remote_addr}")
431
  if request.method == 'POST':
432
- print(f"Incoming POST request with {request.headers.get('Authorization')}")
433
  response = jsonify({ 'error': '401: Invalid API key' })
434
  response.status_code = 401
435
  return "Everyone was having a good time and then this faggot showed up.jpg -> rentry.org/207.jpg"
 
429
  if request.method != 'OPTIONS' and is_authorize_ignored(request) == False and getattr(request.authorization, 'token', '') != api_key:
430
  print(f"WARNING: Unauthorized API key access from {request.remote_addr}")
431
  if request.method == 'POST':
432
+ print(f"Incoming POST request with {request.headers}")
433
  response = jsonify({ 'error': '401: Invalid API key' })
434
  response.status_code = 401
435
  return "Everyone was having a good time and then this faggot showed up.jpg -> rentry.org/207.jpg"