doctord98 commited on
Commit
962bd1b
Β·
1 Parent(s): f02787c

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -428,7 +428,7 @@ def before_request():
428
  try:
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
- response = jsonify({ 'this space is only for doctord98, but you can duplicate it and enjoy' })
432
  response.status_code = 401
433
  return response
434
  except Exception as e:
 
428
  try:
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
+ response = "this space is only for doctord98, but you can duplicate it and enjoy"
432
  response.status_code = 401
433
  return response
434
  except Exception as e: